feat: add built-in support for TanStack Router (#6897) #6919
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.