Is React-Location library depricated?
I am currently using @tanstack/react-location library and the related documentation on website: https://react-location.tanstack.com.
Recently, I found that in TanStack Router (beta) page there’s an installation with slightly different library name - @tanstack/react-router@beta.
In this case I have few questions:
1 - Is react-location library deprecated? If not - which will be used in the future most: react-location or react-router?
2 - Furthermore, will it be better to name beta library other than “react-router” to not mislead to another popular library by Remix - React Router?
React Location
Enterprise routing for React applications
1 Reply
conscious-sapphire•3y ago
1. I Cannot say FOR SURE that it is being deprecated, but given that Tanstack looks to be going Agnostic for frameworks, I'd hedge my bets on Router (
@tanstack/react-router) for the next major change in your app - https://tanstack.com/router/v1.
Although it is currently in beta, around a month back, Tanner did mention that Router is mostly in a GOOD place and that Docs are what's being worked on now, with new updates being posted as close as a couple of days back. https://twitter.com/tannerlinsley/status/1600699299175706625
2. Probably, but now that the decision has been made I doubt they'll be going back on the marketing effort been spent so far (Twitter, Conference Talks, Interviews, etc.). I personally in my head just prefix these libraries with "tanstack" anyways, so no sweat there.TanStack Router | React Router, Solid Router, Svelte Router, Vue Ro...
Powerful routing and first-class search-param APIs for JS/TS, React, Solid, Vue and Svelte
Tanner Linsley (@tannerlinsley)
Woo! @tan_stack Router is looking good which means it’s time to invest in the docs! Some dread it, but it’s one of my favorite stages. Likely it will sus out a few more rough edges we didn’t catch with the beta thus far too.
https://t.co/3H9HPFQUjt
Likes
135
Twitter