RTK-Query's pollingInterval is firing after component unmounts #1655
Unanswered
dorbaruchh
asked this question in
Q&A
Replies: 1 comment
-
That sounds like a bug. Could you create a small reproduction sandbox and open an issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
I'm using a RTK-Query hook and passing in pollingInterval to make the request trigger every minute.
I noticed that after I log out and the component where the hook is used completely unmounts I can still see one more request sent after the interval passes. After this last request is sent no more requests are sent afterward.
Is this expected behavior? Is there any way to prevent that last request from firing?
Beta Was this translation helpful? Give feedback.
All reactions