aadeshkulkarni / figuringout

Thought Journal | NextJS | MongoDB | Shadcn
https://figuringout.life
MIT License
97 stars 96 forks source link

Feature | State management (Recoil) #237

Closed dev13-suthar closed 2 weeks ago

dev13-suthar commented 4 months ago

Global State Management Library

Description

Implemented Global State Mangement Library Recoil, now to Fetch Single Post AtomFamily is being Used and it also caches the State so clientside cannot send unnecessary API calls

current version uses custom hooks with useState for Fetching singlePost so if user goes back and clicks on same post again this causes reFetching of data, which is now solved using atomFamily because when an api call is being made with Id atomFamily checks, if Id is cached it return that data and does not refetches the Same Data.

Resolves #210

Linked Issues

Type of Change

Changes

Screenshots/Recordings

Checklist before requesting a review

Additional Notes

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
medium-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2024 7:11am
aadeshkulkarni commented 2 weeks ago

frontend undergoing redesign. this is paused for the moment. apologies.