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
Recently, I needed to implement a feature where pulling down on a list triggers resetApiState, clearing all data and refetching new data.
This works perfectly on the homepage. However, when I navigate to another page and then return to the homepage, the data refetching no longer works.
After testing, I found that the issue is related to the skip option in the query. The skip value is based on whether the page is focused. If I leave the homepage and return within the keepUnusedDataFor period, executing the same action no longer triggers the expected behavior.
I'm not sure if I missed something or if there's an issue with my implementation.
Hi,
Recently, I needed to implement a feature where pulling down on a list triggers resetApiState, clearing all data and refetching new data.
This works perfectly on the homepage. However, when I navigate to another page and then return to the homepage, the data refetching no longer works.
After testing, I found that the issue is related to the skip option in the query. The skip value is based on whether the page is focused. If I leave the homepage and return within the keepUnusedDataFor period, executing the same action no longer triggers the expected behavior.
I'm not sure if I missed something or if there's an issue with my implementation.
Here’s my code:
package.json dependencies:
Any insights on what might be causing this issue? Thanks in advance!
The text was updated successfully, but these errors were encountered: