T
TanStack12mo ago
conscious-sapphire

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

using Await and defer is only way ?
4 Replies
harsh-harlequin
harsh-harlequin12mo ago
you just need to await queryClient.ensureQueryData() inside the loader
harsh-harlequin
harsh-harlequin12mo 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
conscious-sapphire
conscious-sapphireOP12mo ago
delete await and set options then working.. delete await is fine?
harsh-harlequin
harsh-harlequin12mo 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?