narainkarthikv / sticky-memo

Open Source Contribution Sticky notes web Application. Develop: https://sticky-memo-dev.vercel.app
https://wisdomfox-sticky-memo.netlify.app/
MIT License
6 stars 8 forks source link

Feature #9: implement persistence in local storage #18

Closed AndresCasasola closed 2 months ago

AndresCasasola commented 2 months ago

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

  1. Install recoil-persist
  2. Configure itemsState in state.js to be persistent.

Testing

Related Issues

netlify[bot] commented 2 months ago

Deploy Preview for narainkarthikv-sticky-memo ready!

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

dalekvim commented 2 months ago

What a nice short solution 🔥