Skip to content

Dev/add to local storage#9

Open
PouriaDamavandi wants to merge 2 commits intomasoudimo:mainfrom
PouriaDamavandi:dev/addToLocalStorage
Open

Dev/add to local storage#9
PouriaDamavandi wants to merge 2 commits intomasoudimo:mainfrom
PouriaDamavandi:dev/addToLocalStorage

Conversation

@PouriaDamavandi
Copy link
Copy Markdown

Task Details:
The to-do values should be automatically synced with local storage whenever changes are made to the list.
The synchronization to local storage should occur after a delay of 3 seconds from the last change.
On page load, the application should initialize the to-do list using the data stored in local storage, ensuring the user sees their saved todos.

Implementation :
Added Two Custom hook for handling both debounce and localStorage and used them to store values in localStorage with 3 seconds delay ,

enhancements:
added folder for types ,
added folder for hooks ,
and added folder for storing initial data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant