I want to be able to clean up the timeout/interval created in effect when the store gets destructured.
Unsure if it's useful for any use case, but when the local store is used through the Provider.
Surely I can work around it with regular useEffect but still.