Don't call useCookie in onAuthStateChange, as this leads to incorrect behavior and warnings during development.
Types of changes
[x] Bug fix (a non-breaking change which fixes an issue)
[ ] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
useCookie is called in onAuthStateChange which is called outside of the Vue effect scope. This triggers the following warning in dev: [Vue warn] onScopeDispose() is called when there is no active effect scope to be associated with.. This warning is muted in prod but the behavior of useCookie subtly changes.
Checklist:
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes (if not applicable, please state why)
Don't call
useCookie
inonAuthStateChange
, as this leads to incorrect behavior and warnings during development.Types of changes
Description
useCookie
is called inonAuthStateChange
which is called outside of the Vue effect scope. This triggers the following warning in dev:[Vue warn] onScopeDispose() is called when there is no active effect scope to be associated with.
. This warning is muted in prod but the behavior ofuseCookie
subtly changes.Checklist: