manual-pink
manual-pink6d ago

TanStack router support

is it possible to use Refine with TanStack Router?
3 Replies
kapa.ai
kapa.ai6d ago
Hi @Galen. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the available information, it appears that Refine does not currently have official support for TanStack Router. According to a GitHub issue discussion, the Refine team is not considering adding support for @tanstack/router at this time GitHub Issue (https://github.com/refinedev/refine/issues/5708). However, Refine is known for its flexibility and headless architecture, which allows it to work with various routing solutions. While there isn't a specific package or integration for TanStack Router, it might be possible to use it with Refine, although it would require custom implementation. If you're interested in using TanStack Router with Refine, you have a couple of options: 1. You could create your own integration package, as suggested by a Refine team member in the GitHub issue. 2. You could explore using Refine's existing routing capabilities, which are designed to be flexible and work with different routing libraries Headless in Routing (https://refine.dev/blog/react-admin-vs-refine/#headless-architecture). It's worth noting that Refine does have official support for TanStack Table (formerly React Table) through the @refinedev/react-table package TanStack Table Adapter (https://refine.dev/docs/packages/tanstack-table/introduction/), but this is different from TanStack Router. If TanStack Router support is crucial for your project, you might want to reach out to the Refine community or consider alternative routing solutions that are known to work well with Refine. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai6d ago
<@449251839343591425> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
conscious-sapphire
conscious-sapphire2d ago
Hey @Galen we don't have tanstack-router integration but we are open to contributions from the community. You can check our documentation on this one: https://refine.dev/docs/routing/router-provider/#creating-a-router-provider Once you publish your router integration on NPM, we can add it to our documentation.
Router Provider | Refine
Refine provides a simple interface from the routerProvider prop to infer the resource from route, pass, parse and sync the query parameters and handle navigation operations. This provider and its properties are optional but recommended to get the most out of Refine.