Coder Social home page Coder Social logo

Comments (12)

notjiam avatar notjiam commented on August 21, 2024 1

@mazipan I think this issue related with my pull request
#76

from nuxt-storage.

mazipan avatar mazipan commented on August 21, 2024

See sample here: https://codesandbox.io/s/102r751xj
Live view: https://102r751xj.sse.codesandbox.io/

from nuxt-storage.

dzarezenko avatar dzarezenko commented on August 21, 2024

@mazipan , your example works fine, but in my nuxt.js project storage is clean any time I reloaded the page, and all local storage connected logic is in this method saveTransactionData(txnData).

So I don't clean Local Storage in other places in code.

UPD: I have tested few times, even I don't reload the page I receive null from storage.

from nuxt-storage.

mazipan avatar mazipan commented on August 21, 2024

Maybe because I remove the storage, if detected as expired data 🤔

from nuxt-storage.

mazipan avatar mazipan commented on August 21, 2024

Can you please update version of nuxt-storage to 1.2.1 @dzarezenko?

from nuxt-storage.

dzarezenko avatar dzarezenko commented on August 21, 2024

With new version I noticed 2 changes:

  1. The Local Storage was not cleaned after page refresh
  2. I see storage is expired message when receive null from storage, but I have the next expiration settings:
created: 1557236384640
expiry: 30
unit: "d"

from nuxt-storage.

kevinasurjadi avatar kevinasurjadi commented on August 21, 2024

I get the same result, on reload page, I get undefined data of localstorage

from nuxt-storage.

mazipan avatar mazipan commented on August 21, 2024

Will release in 19th August 2019 ya...

from nuxt-storage.

mazipan avatar mazipan commented on August 21, 2024

Published in 1.2.2

from nuxt-storage.

mazipan avatar mazipan commented on August 21, 2024

@all-contributors please add @notjiam for tests and bug

from nuxt-storage.

allcontributors avatar allcontributors commented on August 21, 2024

@mazipan

I've put up a pull request to add @notjiam! 🎉

from nuxt-storage.

Quineone avatar Quineone commented on August 21, 2024

This bug still reproduce in "nuxt-storage": "^1.2.2", nuxt version is "nuxt": "^2.0.0"

from nuxt-storage.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.