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

rtkQuery subscriptions bug #542

Open
PouryaNoufallah96 opened this issue Apr 26, 2023 · 1 comment
Open

rtkQuery subscriptions bug #542

PouryaNoufallah96 opened this issue Apr 26, 2023 · 1 comment
Labels

Comments

@PouryaNoufallah96
Copy link

hello
i updated package to version 9.0.0-rc.2 and I'm using rtkQuery. when I fetch data in ssr and then I set wrapper.useHydration(props), when I leave the page the subscription is still active:
image

even when I add this keepUnusedDataFor: 60 property to createApi and the cache is not getting cleared.

@PouryaNoufallah96
Copy link
Author

even in your demo-redux-toolkit project in pokemon page, this is happening. when we call rtkQuery API from getServerSideProps, it's subscription is not unsubscribe when we leave the page:
image

here's an example when I entered pokemon page 5 times and leave, it's subscriptions still exist

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

No branches or pull requests

1 participant