useEffectOnce exit is not going to fire as far as I can see. This hook works to defeat the hook being called twice, but the cleanup functions will never get called as far as I can see.
I honestly don't know how to fix this. I've been trying everything I can think of.
I help people develop software and test things better. Find me at EvilTester.com I also help people market their software and write about marketing over on Talotics.com
useEffectOnce exit
is not going to fire as far as I can see. This hook works to defeat the hook being called twice, but the cleanup functions will never get called as far as I can see.I honestly don't know how to fix this. I've been trying everything I can think of.
Thanks for pointing this out Jack. Niall updated the code, hopefully it is better.