auth-js
auth-js copied to clipboard
feat: don't emit `SIGNED_IN` events on visibility change
Each time a tab became visible, the SIGNED_IN event was emitted. Although this is normal, it's unnecessary overhead. In some implementations, it could result in unnecessary requests or UI re-renders.
Fixes #579
I need more time to figure this out.
Found something else: in multi-tab this SIGNED_IN event is emitted to all other tabs so it may be a bit too much.