Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#8,840 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@IdhayaBastine15 ci sta già lavorando.

Dal 22/8/2026.

  • #11256 di @IdhayaBastine15 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

package: solid-query
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

Lingua principale
TypeScript
Stelle
50.4k
Fork
4.2k
Merge medio
7h 29m
PR unite (30g)
393

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TanStack/query

Tutte le issue di TanStack/query

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.