auth-js icon indicating copy to clipboard operation
auth-js copied to clipboard

feat: don't emit `SIGNED_IN` events on visibility change

Open hf opened this issue 2 years ago • 4 comments

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

hf avatar May 18 '23 12:05 hf

I need more time to figure this out.

hf avatar Jun 14 '23 09:06 hf

Found something else: in multi-tab this SIGNED_IN event is emitted to all other tabs so it may be a bit too much.

hf avatar Jun 29 '23 14:06 hf