Fix #176: Autosave and persistence for notes#177
Fix #176: Autosave and persistence for notes#177Manu95021 wants to merge 6 commits intoHarshYadav152:mainfrom
Conversation
|
@Manu95021 is attempting to deploy a commit to the Harsh Yadav's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
🎉 Thank you @Manu95021 for your first PR to SaveBook!
We really appreciate your contribution 🙌
What happens next:
- 🔍 Maintainers will review your PR
- 🧪 Automated checks will run
- ✨ Feedback may be shared if needed
Please confirm your PR includes:
- ✔️ Clear summary of changes
- ✔️ Linked issue (e.g., Fixes #123)
- ✔️ Steps to test
- ✔️ Screenshots (for UI changes)
📘 Contribution Standards:
👉 https://github.com/HarshYadav152/SaveBook/blob/main/CONTRIBUTING.md
💬 Stay Connected with Our Community
🎯 Discord (Official Communication)
For formal discussions, code reviews, and project updates:
👉 https://discord.gg/eMTePUK3gJ
💚 WhatsApp (Friendly Community)
For informal chats, quick help, and building friendships with contributors:
👉 https://chat.whatsapp.com/I8GYXd3mHlDCC2iXhNGeqV
🌟 Our Philosophy: We value both professional collaboration (Discord) and personal connections (WhatsApp). Join both to get the complete SS-Capture community experience!
Thanks for helping improve SaveBook 🚀
Let's build something amazing together! 💪
|
please review it and merge |
HarshYadav152
left a comment
There was a problem hiding this comment.
@Manu95021
Do these changes
- Remove
package-lock.jsonfrom repo root. - Revert any changes make to
README.md - Here you write
everything else remain unchanged- by this you removed required code from
Notes.js - You just have to make changes to file with your implementation but do not remove any code from it until & unless it is become redundant.
- by this you removed required code from
keep your branch is up to date with main.
HarshYadav152
left a comment
There was a problem hiding this comment.
@Manu95021 Do these changes
- Move useEffect from the bottom of the code to inside functional component Notes()
- Also
noteContentis not defined
|
@Manu95021 Have you updated your branch with request changes. |
|
@Manu95021 |
|
Close as requested by assignee |
This PR resolves issue #176, where users lose unsaved changes when refreshing the page or navigating to another section in the SaveBook application.
Changes Implemented:
Introduced autosave with debounce to persist note changes automatically.
Notes are now restored after page refresh or route change.
Added UI feedback to indicate save status (“Saving…” / “Saved”).
Improved state management to rely less on temporary in-memory state and more on persistent storage (localStorage and backend).
How to Test:
Edit or create a note.
Refresh the page → content should persist.
Navigate to a different route and return → content should persist.
Observe autosave feedback while typing.
Impact:
Prevents accidental loss of user data.
Improves reliability and user trust.
Lays groundwork for future offline support or further persistence enhancements.