How to use solid-query with SSR in Solid Start?
Are there any example like this https://tanstack.com/query/v4/docs/react/guides/ssr but on Solid. Thanks.
SSR | TanStack Query Docs
React Query supports two ways of prefetching data on the server and passing that to the queryClient.
Prefetch the data yourself and pass it in as initialData
1 Reply
stormy-gold•3y ago
https://stackblitz.com/github/ardeora/solid-start-query-basicssr?file=src%2Froutes%2Findex.tsx Hello there! Apologies for the late reply. SSR for Solid Query is landed in v5. Here is an example of solid-start with solid-query
StackBlitz
Ardeora - Solid Start Query Basicssr - StackBlitz
Run Solid Start Query Basicssr created by Ardeora on StackBlitz