Discover and read the best of Twitter Threads about #ReactLocation

Most recents (2)

"Can you open that button/link in a new tab?" can send (ultimately good) shockwaves through your app state:

- How easy is it for you to put that state in the URL?
- Is it complex/nested?
- Is it type safe?
- Can you update some/all of it?
- While also changing the path/hash?
- Is that state stable between renders?
- Do all routes/paths now need to be aware of that state?
- When do you persist that state automatically? Can you?
- If you update only part of that state, are the parts that remained the same structurally equal?
- How much global/route-level/usage-level control do you have over the links that you are generating?
- Can you apply defaults to said URL state? On specific pages?
- Can you validate the end-resulting URL for correctness?
- Can you fix it if it's not?
Read 5 tweets
🎉🥳 Announcing #ReactLocation, a brand new router for React!

⏳ Async Loaders & Elements
🔀 Parallelized
⏲️ Prefetching
🗄 Caching
🔎 1st-class Integrated Search Params API
🗂 Code-Splitting
⚠️ Error/Pending/Timing States
🪆 Nested Layouts

react-location.tanstack.com

#TanStack
⏳ Async Route Loaders & Elements

Routes can define data dependencies and the elements they render as asynchronous functions that will be guaranteed to resolve before rendering the next location. The suspense is palpable! 😜
🔀 Parallelized Loaders

"🎶 Don't go chasing waterfalls", not even the data-fetching ones!

Navigating through 3 loaders to a deep link out of the gate? By default, loaders and async elements for matched routes are all parallelized for efficiency. You can fetch serially, too 🤷‍♂️
Read 16 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!