If one of my queries fails at one point (e.g. because the backend server is unreachable for a while), the following line sets query.shouldContinueRetryOnFocus to true:
If this flag is true, the query gets refetched every time the window is focused.
However, you seem to have forgotten to delete this flag once the query succeeds again. This causes the query to be refetched on every window focus event, even if it's perfectly fresh and not stale.
Hmmm true. Would you like to submit a PR and companion regression test to fix this?
I鈥榤 sorry, I don鈥榯 feel like I know enough about the intricacies of how your code and testing works to actually fix this in your code. I just worked around this bug in my code for the time being by getting an instance of the query object from the cache and deleting the flag myself upon a successful fetch. I鈥榤 sure this is way easier to fix for you than it would be for me.
@tannerlinsley @rutzfutz, I could take a look into this.
That would be great!
:tada: This issue has been resolved in version 1.5.7 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Most helpful comment
That would be great!