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
Clear the cache from the Logout component and move to the Account component; when the query function is called in the Account component, it is called up to the query function in the Main component, which returns null and the screen goes blank.
In the Account component, a successful response is returned, but the query function in the Main component is called immediately thereafter.
In the v.3.8.2 series, the query function of the Main component was never called until the query function of the Main component, but after upgrading to v4.0.0-beta2, it is called for some reason.
It seems to be caused by updating the cache, how can I prevent this problem?
The text was updated successfully, but these errors were encountered:
Hi 👋 This is most likely the result of the error handling changes. In v4, cache misses are emitted with response.data = null and a response.exception is CacheMissException.
There's more background in the RFC but the tldr; is that it exposes more information to the callers and make it easier to react to cache misses.
If you want to ignore the cache misses, you can do so by filtering out the cache misses:
Question
Version
4.0.0-beta2
Summary
Unable to properly retrieve Query response after clearing cache.
We are doing the following process.
Example code
Clear the cache from the Logout component and move to the Account component; when the query function is called in the Account component, it is called up to the query function in the Main component, which returns null and the screen goes blank.
In the Account component, a successful response is returned, but the query function in the Main component is called immediately thereafter.
In the v.3.8.2 series, the query function of the Main component was never called until the query function of the Main component, but after upgrading to v4.0.0-beta2, it is called for some reason.
It seems to be caused by updating the cache, how can I prevent this problem?
The text was updated successfully, but these errors were encountered: