Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resetApiState issue #4684

Open
EhsanKhalili opened this issue Oct 31, 2024 · 2 comments
Open

resetApiState issue #4684

EhsanKhalili opened this issue Oct 31, 2024 · 2 comments

Comments

@EhsanKhalili
Copy link

Hello,

After calling resetApiState, in some cases (changing page in nextjs app) APIs doesn't reinitiate and useQuery result remain undefined.

@markerikson
Copy link
Collaborator

Can you provide a CodeSandbox, repo, or Replay ( https://replay.io/record-bugs ) that reproduces the issue?

@EhsanKhalili
Copy link
Author

https://app.replay.io/recording/abd111d2-fc15-4f4b-8ef1-a9271385fd80

Here is a link to a sample project on Replay that demonstrates the problem.

As you can see, I first wait for the data on the main page to load and display.
Then I go to the test page and wait for the data on this page to load and display.

After the second step, I will call resetApiState API,
and now APIs in pages doesn't reinitiate again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants