You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in a useEffect function I call getJobsAsync.run(...) based on some props. useWatch does not update any of the state (started, finished, updating) with the options defined:
If I remove the options, the state does get updated. I'm assuming it has something to do with cache break enabled. But I would think if cache is enabled then when the cache has timed out and the request to server is made the state would be upated. Any thoughts?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an async function that I am calling useWatch on like so:
const [started, finished, result, updating] = getJobsAsync.useWatch(jobsParams,
{
cacheBreakEnabled: true,
key: cacheKey.toString()
});
in a useEffect function I call getJobsAsync.run(...) based on some props. useWatch does not update any of the state (started, finished, updating) with the options defined:
{
cacheBreakEnabled: true,
key: cacheKey.toString()
}
If I remove the options, the state does get updated. I'm assuming it has something to do with cache break enabled. But I would think if cache is enabled then when the cache has timed out and the request to server is made the state would be upated. Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions