TanStackT
TanStack2y ago
9 replies
awake-maroon

What is best way to compose queryFn options for server and client in SSR

Just want to know what pattern you guys follow for queryOptions that will work and client and server while preloading.
For example If I am preloading query on server it should call database directly and on client it should fallback to api route
Was this page helpful?