Closed dev13-suthar closed 2 weeks 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 |
frontend undergoing redesign. this is paused for the moment. apologies.
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