Closed AndresCasasola closed 2 months ago
Name | Link |
---|---|
Latest commit | af53c26c4cb52bd285543a8c0f0bd8649b1224af |
Latest deploy log | https://app.netlify.com/sites/narainkarthikv-sticky-memo/deploys/66b7e3ada1dd690008e0ed10 |
Deploy Preview | https://deploy-preview-18--narainkarthikv-sticky-memo.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
What a nice short solution 🔥
Implement Items States Persistence in Local Storage
Overview
After reading recoil library docs, it seems to be a good solution for unified state management and the current implementation already implement it for the different component views (Notes, Boards and Tables). I mean, all the components uses the same items state, so I think it's working well.
But natively recoil library doesn't support persistence for local storage, so for implementing persistence can be used an extension package of it named recoil-persist.
This PR implements persistence in local storage for the items state using
recoil-persist
.Changes made
recoil-persist
state.js
to be persistent.Testing
Verified that when creating some Notes, all of them appears in the different views (Notes, Boards and Tables). And when updating states like 'held' or 'checked', also get update in all the views.
Verified that created Notes persist after F5 reloads and when closing the tab and opening the application again.
Related Issues
9