react-activation
react-activation copied to clipboard
useActivate is being fired 3 times
Hi, I have implemented keepalive for tab switching and get this weird behavior when switching between tabs I get useUnactivate
fired once and useActivate
fired three times for each tab.
What is the reason for that?
Thanks in advance
Have you event been using <React.StrictMode />
? StrictMode would trigger lifecycle many times which should not be used with react-activation
Thanks for reply. In dev mode as it is running in strictmode seems this is default behaviour. Is there way to disable strictmode for webpack devserver?