Comments (12)
@mazipan I think this issue related with my pull request
#76
from nuxt-storage.
See sample here: https://codesandbox.io/s/102r751xj
Live view: https://102r751xj.sse.codesandbox.io/
from nuxt-storage.
@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.
Maybe because I remove the storage, if detected as expired data 🤔
from nuxt-storage.
Can you please update version of nuxt-storage
to 1.2.1 @dzarezenko?
from nuxt-storage.
With new version I noticed 2 changes:
- The Local Storage was not cleaned after page refresh
- I see
storage is expired
message when receivenull
from storage, but I have the next expiration settings:
created: 1557236384640
expiry: 30
unit: "d"
from nuxt-storage.
I get the same result, on reload page, I get undefined data of localstorage
from nuxt-storage.
Will release in 19th August 2019 ya...
from nuxt-storage.
Published in 1.2.2
from nuxt-storage.
@all-contributors please add @notjiam for tests and bug
from nuxt-storage.
I've put up a pull request to add @notjiam! 🎉
from nuxt-storage.
This bug still reproduce in "nuxt-storage": "^1.2.2"
, nuxt version is "nuxt": "^2.0.0"
from nuxt-storage.
Related Issues (15)
- Setup eslint with standard.js
- About subdomains HOT 1
- need to add a method,only update for value
- Action Required: Fix Renovate Configuration
- Please how do i clear a particular key from session HOT 4
- No clear localStorage function. HOT 1
- Update the Documentation to Include How to Remove a Specific Item from the Local Storage
- Supports Nuxt 3? HOT 3
- 500 __vite_ssr_import_1__.default.localStorage.getItem is not a function HOT 1
- how to set default expiry time? HOT 4
- Expired does not clear on it's own in nuxt 3
- Any @types support planned? HOT 1
- timeout in seconds instead of minutes? HOT 3
- Migrate to Typescript HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt-storage.