-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add infinite query examples #4775
Add infinite query examples #4775
Conversation
remus-selea
commented
Dec 16, 2024
•
edited
Loading
edited
- Add a cursor-based infinite scroll example
- Add limit and offset infinite scroll example
- Add page and size infinite scroll example
- Add an intersection observer callback ref hook
- Update routing to easily go back to the menu from the top section
- Update handlers.ts with new handlers for the examples
- Update redux-toolkit version for the infinite scroll examples
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 6ed4e42:
|
I got inspired by how discord does bidirectional pagination when jumping to a message from search. That's where I got "after", "before", "around" and "limit" from. |
80752e6
to
45c4437
Compare
87270fe
to
79f6ff8
Compare
- Add example using page and size - add an intersection observer callback ref hook
7c76b35
to
6ed4e42
Compare
78ff764
into
reduxjs:feature/infinite-query-integration
* Add bidirectional cursor infinite scroll example * Add example using limit and offset - Add example using page and size - add an intersection observer callback ref hook * Bump infinite query RTK version --------- Co-authored-by: Mark Erikson <[email protected]>