Replies: 3 comments 15 replies
-
Have you tried to use function without mutating data? I mean just create function that returns call to listAll, without map. Or maybe u could try to return useQuery... and then call it in the component? 🤔 I'm wondering, is result empty/undefined? |
Beta Was this translation helpful? Give feedback.
-
Hi @karol-janik - changing it to getListFromStorage1 makes no difference. In the debug tool I can see the query in the list and the data in the Query Details panel for both functions - so R-Q does get the final data from the promise but it doesn't get passed to the calling component.
|
Beta Was this translation helpful? Give feedback.
-
i would start with narrowing it down by replacing the
if that works, you know that your issue lies within the queryFn itself. Then, you can add more code until it breaks. If this simple function doesn't work, there might an issue with your setup, like a queryClient that gets re-created on every render ... |
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.
-
I'm getting a list of files from google's firebase storage. The query gets called and returns the right data but react-query doesn't seem to receive the data. All my other hooks are written with this structure. What am I not seeing?
Edited to add detail
Using the debug tool on the browser I can see the call, it has data, the right key, isFetching is false
Beta Was this translation helpful? Give feedback.
All reactions