Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature | State management (Recoil) #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dev13-suthar
Copy link

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

  • New feature (non-breaking change which adds functionality)

Changes

  • Change 1: New Library Recoil
  • Change 2: set up Centralized State Management
  • ...

Screenshots/Recordings

Checklist before requesting a review

  • [*] I have performed a self-review of my code
  • [*] I assure there are no similar/duplicate pull requests regarding the same issue
  • [*] My changes follow the project's coding guidelines and best practices
  • [* ] Code is formatted properly and lint check passes successfully

Additional Notes

Copy link

vercel bot commented Jul 6, 2024

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 aadeshkulkarni changed the title Global State Added Feature | State management (Recoil) Jul 21, 2024
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.

Feature | Implement Recoil for State management | Blogslist
1 participant