Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#8,840 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@IdhayaBastine15 đang làm issue này rồi.

Từ ngày 22/8/2026.

  • #11256 của @IdhayaBastine15 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
50.4k
Fork
4.2k
Merge trung bình
11 giờ 33 phút
Pull request đã merge (30 ngày)
421

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TanStack/query

Tất cả issue của TanStack/query

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.