Replies: 2 comments
-
|
This should be an opportunity for third-party packages. I would suggest someone take on this challenge! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I have this implementation working, which clears the localStorage cart after 24 hrs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to suggest a built in expiry mechanism for data created with
persist.Something similar to this method, built into Zustand, would be helpful: https://www.sohamkamani.com/javascript/localstorage-with-ttl-expiry/
Beta Was this translation helpful? Give feedback.
All reactions