TanStack / TanStack/query

when using preload in solidstart, the query runs again on the client

Open
#8,840 1 comment 0 reactions 1 assignee View on GitHub

@IdhayaBastine15 is already working on this.

Since Aug 22, 2026.

package: solid-query
Dominant language
TypeScript
Stars
50.3k
Forks
4.2k
Avg merge
18h 25m
Merged PRs (30d)
200

Description

Describe the bug

when using preload, the query runs on the client again needlessly

export const route = {
  preload() {
    useQueryClient().prefetchQuery(query);
  },
} satisfies RouteDefinition;
Your minimal, reproducible example

https://stackblitz.com/edit/node-e9nbpmct

Steps to reproduce

open stackblitz preview in new tab

Expected behavior

when coming from an i fixed this by setting staleTime: 10 * 1000 but the bug still occurs when coming from a fresh server request.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

OS: Linux
Browser: Chrome

Tanstack Query adapter

solid-query

TanStack Query version

^5.69.0

TypeScript version

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.