Replies: 3 comments 4 replies
-
Why do you need any logic to be executed here if no new data comes from the API? Maybe it makes sense to execute this logic somewhere else outside of the useQuery. You can use |
Beta Was this translation helpful? Give feedback.
-
seems like const { data } = useQuery(...)
const transformedData = useMemo(() => transformData(data), [data]) |
Beta Was this translation helpful? Give feedback.
-
v3 has the |
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.
-
consider the following query where the API result is cached for ever:
The problem is that on my revisits to the component (not the first time) the
onSettled
is not invoked (since it reads from cache I believe) and mytransform(data)
is not run. what am I missing here?Beta Was this translation helpful? Give feedback.
All reactions