Issue with updateOptions #143
-
Thanks for the hard work! Tanstack query is a game changer for dealing with server state and i'm glad that also us Angular developers can use It! I'm having a issue with updateOptions witch if i under stand correctly Is the right way for dealing with parametric queries. I'm looking at the Dynamic Page component in the samples but i get and error while i try to pass data ti updateOptions function.
I'm doing something wrong or is It somewhat broken? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can you share the code, please? |
Beta Was this translation helpful? Give feedback.
-
Ok, apparently i'm a moron. I spent almost 4 hours on this issue yesterday and now (altough with an empty project) can't replicate it 🤦♂️ Anyway will hijack the thread to ask another question: here is the stackblitz. Obviously when defining the initial query i need to pass an id, causing an error because 0 is not a valid id. There is some way to "wait" for the first input before firing the first fetch? Thanks a lot and sorry for the non problem 🤦♂️ |
Beta Was this translation helpful? Give feedback.
enabled
option