[solid-js] experimental_prefetchInRender
with initial enabled: false
makes page load indefinitely
#1990
Unanswered
BierDav
asked this question in
Help & Questions
Replies: 1 comment
-
Your question doesn't seem related to Vike. But feel free to elaborate if you do believe it has something to do with Vike. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
In our app we unfortunately have dependent queries and there are two ways we achieve this dependent behavior.
(await dependent_query.promise)?.token
in thequeryFn
which works really well, but requiresexperimental_prefetchInRender: true
enabled: false
as long in the dependent query until the parent query has been resolved.Here is a minimal reproduction: https://stackblitz.com/~/github.com/BierDav/vike-solid-query-bug?file=pages/index/Movies.tsx
Here you can clearly see that even though the query is enabled immedately after the query is initialized with
enabled: false
that and the query is even executed, but the page still remains loading.https://github.com/user-attachments/assets/be57d4ad-111c-4bcb-89f9-ed52c6b51140
Unfortunately the second/dependent query is executed on the client as you can see wheny, but that likely due to this issue: TanStack/query#7513
I hope someone can help me with that because this is real blocker for us switching to vike 🫶
Beta Was this translation helpful? Give feedback.
All reactions