useLoader deprecated? What is the recommended way to get data from load #812
Unanswered
erickarnis-tb
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The documentation is out of date as of about a week ago. The internals of the library have moved to a 100% react architecture, and the caching feature has been removed from the library in favor of external cashes like Query. I’m almost done re-factoring the internals, then I will update all of the documentation. Stay tuned. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
useLoader is still in the docs and examples but trying to import it from
@tanstack/react-router
gives a type error saying that it's not exported.component: ({ useLoader }) => ...
similarly gives a type error saying useLoader does not exist on type RouteProps. I am using Apollo Client but I'm sure this question is broadly applicable. I am using version 0.0.1-beta.211.Say I have this route:
and this component
How should I get the results of the query in load into the component?
Beta Was this translation helpful? Give feedback.
All reactions