when using preload in solidstart, the query runs again on the client
維護者通常 1 天內回覆
評估
這個 Issue 還沒有評估資料。
描述
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
- 主要語言
- TypeScript
- 星號
- 50.5k
- 分支
- 4.2k
- 平均合併
- 9 小時 10 分鐘
- 30 天內合併 PR
- 504
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TanStack/query 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
TanStack/query#12466 · 1 則留言 ·
維護者通常 1 天內回覆
-
solid-query: STRICT_READ_UNTRACKED on Solid 2 — client()/options() read in component body (useMutation, useBaseQuery)可能重新可做 @LeonxLJX 於 63 天前認領,目前沒有進行中的 PR。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
TanStack/query#11358 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
A hydrated query that rejects ignores the reader's `retry` and `retryDelay`可能已有人在做 @KATT 於 2 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 45/100
維護者通常 1 天內回覆
-
[svelte-query] A result key first read after the query settled stays stale: the component's copy refreshes only on a change of an already-tracked key可能已有人在做 @lazerg 於 4 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 20/100
維護者通常 1 天內回覆
-
[query-broadcast-client-experimental] broadcastQueryClient: an `added` event overwrites a receiving query that has no data (e.g. in error) with the sender's empty state可能已有人在做 @lazerg 於 16 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 25/100
維護者通常 1 天內回覆
相似的 Issue
-
check:passed streams:add
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
S: triage
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
iot client
難度 2/5 1-3 小時 新手友好度 82/100
Open-Locker/Open-Locker#365 ·
維護者通常 1 天內回覆
-
bug enhancement
難度 2/5 1-3 小時 新手友好度 69/100
inmanta/web-console#7787 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 65/100
shoelace-style/webawesome#2979 ·
維護者通常 1 天內回覆