T
TanStack15mo ago
sensitive-blue

How to render a loading component while fetching data with queryClient.ensureQueryData inside loader

using Await and defer is only way ?
4 Replies
wise-white
wise-white15mo ago
you just need to await queryClient.ensureQueryData() inside the loader
wise-white
wise-white15mo ago
RouteOptions type | TanStack Router React Docs
The RouteOptions type is used to describe the options that can be used when creating a route. RouteOptions properties
sensitive-blue
sensitive-blueOP15mo ago
delete await and set options then working.. delete await is fine?
wise-white
wise-white15mo ago
not sure what you mean Can you please provide a minimal complete example, e.g. by forking one of the examples on stackblitz?

Did you find this page helpful?