-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Description
Describe the bug
When QueryClientProvider during SSR within a component that uses Solid Query, the render crashes, the server doesn't respond. 30 seconds later, a "renderToString timed out" message is shown.
Your minimal, reproducible example
https://stackblitz.com/edit/github-pqy8j7-h5azxugy?file=src%2Fcomponents%2FSolidApp.tsx
Steps to reproduce
- Open the link
- Wait until the container starts, dependencies are installed.
- You are shown a blank page.
- Wait for a 30 second timeout.
- "renderToString timed out" is shown in the console and in the preview window.
Expected behavior
The app should render. Here's Solid Query 5.85.4:
https://stackblitz.com/edit/github-pqy8j7-h8ay4ze9?file=src%2Fcomponents%2FSolidApp.tsx
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- Version starting from 5.85.5 onwards, from the introduction of fix(core): do not reject promise right away - only when
promise
gets used #9576
Tanstack Query adapter
solid-query
TanStack Query version
v5.58.5
TypeScript version
No response
Additional context
As a workaround, enabling experimental_prefetchInRender: true
fixes rendering.
Metadata
Metadata
Assignees
Labels
No labels