TanStackT
TanStack3y ago
10 replies
urgent-maroon

What version should I use to match the documentation?

Hey everyone, first time poster here.
I found TanStack because i was looking for a typesafe router for react, now I am stumped when using the latest beta release while following the documentation.

I am following this doc about loading data:
https://tanstack.com/router/v1/docs/guide/data-loading#the-loader-route-option
and get the type error in the attached image.
I figure this is because the documentation of a beta product may not be in sync with the code.

- Am I doing something wrong > am I missing something in the documentation?
- Or is there a better version that you recomend using to match the documentation?
- Or is there an up to date example of how to use the library that I could use to see how things work?
image.png
Data loading is a common concern for web applications and is extremely related to routing. When loading any page for your app, it's ideal if all of the async requirements for those routes are fetched and fulfilled as early as possible and in parallel. The router is the best place to coordinate all of these async dependencies as it's usually the...
Data Loading | TanStack Router Docs
Was this page helpful?