-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: add built-in support for TanStack Router (#6897) #6919
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
base: main
Are you sure you want to change the base?
feat: add built-in support for TanStack Router (#6897) #6919
Conversation
- Add @refinedev/tanstack-router package with RouterBindings implementation - Implement go, back, parse, and Link functions for TanStack Router integration - Add comprehensive tests for router bindings functionality - Create example application demonstrating TanStack Router integration - Support type-safe routing with built-in data fetching and caching - Enable modern search parameter handling with validation - Provide seamless drop-in replacement for other Refine router providers Closes refinedev#6897
|
❌ Deploy Preview for refine-doc-live-previews failed.Built without sensitive environment variables
|
|
There should probably be additional review on this as there are signs of LLM generation involved. |
|
At first glance, the PR looks great, thank you! However, the core team is busy with onging tasks (Refine v5 and Refine AI). We’ll be able to review this PR in about 2 weeks. We’re aiming to release it by the end of next month. Thanks again! |
|
Hello @Sri-Akshat5 thanks for the PR. We'll review it after releasing Refine 5. Can you also add the necessary documentation? You can see how other router providers does it. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Any updates? |
This pull request adds built-in support for the TanStack Router in the Refine framework. It includes the implementation of a new package, @refinedev/tanstack-router, which provides the RouterBindings for seamless integration.
Key Features
• RouterBindings Implementation: New package with go, back, parse, and Link functions.
• Comprehensive Tests: Includes tests for router bindings functionality.
• Example Application: A demonstration application showing TanStack Router integration.
• Type-Safe Routing: Supports built-in data fetching and caching.
• Modern Search Parameter Handling: Includes validation for easy configuration.
• Seamless Integration: Works as a drop-in replacement for other Refine router providers.
Checklist
Please ensure your pull request fulfills the following requirements:
The commit message follows our guidelines (commit convention).
Related issue(s) are linked—Closes #6897.
Tests for the changes have been added.
Documentation has been updated.
Changesets have been added (creating a changeset).
Current Behavior
Currently, Refine doesn't include built-in support for TanStack Router.
New Behavior
The new implementation allows using the TanStack Router with Refine, providing advanced features like type-safe routing and modern search parameter handling.
Notes for Reviewers
Feel free to reach out if you have any questions about the implementation details or need further clarifications.