Skip to content
Source
Sign inSign up
TanStack/query

Solid Query breaks Astro SSR #9713

Send to my agent
Closedli-kai(GitHub profile, opens in a new tab) opened this issue 0 comments

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

  1. Open the link
  2. Wait until the container starts, dependencies are installed.
  3. You are shown a blank page.
  4. Wait for a 30 second timeout.
  5. "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

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.

  1. TkDodo closed this

Sign in to join this conversation.