UseQuery not triggering a rerender
I'm facing unexpected behaviour with useQuery, if anyone could help it would greatly appreciated! issue is the query is stuck in loading
the console log prints out:
,then right after it prints out:
, but for some reason the Loading component is still there.
Here is what my use query hook is:
3 Replies
continuing-cyanOP•10mo ago
I've also tried adding notifyOnChangeProps: "all" and that didnt fix it
ambitious-aqua•10mo ago
That's wierd. It looks like it should work. Can you get this reproducted in a Stackblitz example?
What's in the
Data component?flat-fuchsia•10mo ago
The useQueryHook() definition takes a userId as an parameter, but your implementation in the component doesn't have any argument passed to it. I agree with DogPawHat that a code reproduction would be super helpful.