queryFn #9514
Replies: 2 comments 1 reply
-
this was never a supported pattern and at best an issue in the typings.
by calling |
Beta Was this translation helpful? Give feedback.
-
Thank you for the answer! Or am i missing something crucial as this aproach seems straight up absurd. I modified my custom useQueryObserver to better reflect the one in the source and it works as expected so why is pushback? Best regards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, somewhere between 5.62.1 and 5.83.0 a check was added in useBaseQuery:
So if you are no longer supposed to use useQuery w/o a queryFn, how do you subscribe to the cache? I assume everybody used useQuery with a key to just sub to a keys data before this change. I have really not enough time to fiddle with the internals, so is this an OKEY way to sub to a keys data:
Beta Was this translation helpful? Give feedback.
All reactions