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

Documentation for useInfiniteQuery Hook #90

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JavidSumra
Copy link

Description:

  • Added detailed documentation for the custom useInfiniteQuery hook used in CARE to handle paginated API requests, infinite scrolling, and managing the state of items while ensuring that duplicate items are removed when fetching new pages of results.

Fixes #88

Changes:

  • Updated the documentation with examples and explanations on how to use useInfiniteQuery.
  • Explained the basic usage, arguments, and key return values for the hook.
  • Provided a use case for handling paginated data and infinite scrolling.

Additional Notes:

  • The documentation includes information on handling paginated API responses, the usage of path parameters and query parameters, and deduplication of items fetched across multiple pages.
  • Ensure the examples align with the current implementation of CARE and the usage of the useQuery hook as a foundation for useInfiniteQuery.

Copy link

netlify bot commented Dec 9, 2024

Deploy Preview for docs-ohc ready!

Name Link
🔨 Latest commit 0d4447b
🔍 Latest deploy log https://app.netlify.com/sites/docs-ohc/deploys/676eb32e96dc7b0008776807
😎 Deploy Preview https://deploy-preview-90--docs-ohc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rithviknishad rithviknishad self-requested a review December 14, 2024 05:11
@JavidSumra
Copy link
Author

@khavinshankar can you please review this PR?

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.

Add a Documentation for useInfiniteQuery hook.
2 participants