Skip to content

fix(auth): removed the shareReplay from auth and addressed Zone.js issues#2682

Merged
jamesdaniels merged 1 commit intomasterfrom
auth_guard_early
Nov 24, 2020
Merged

fix(auth): removed the shareReplay from auth and addressed Zone.js issues#2682
jamesdaniels merged 1 commit intomasterfrom
auth_guard_early

Conversation

@jamesdaniels
Copy link
Member

@jamesdaniels jamesdaniels commented Nov 24, 2020

I added a shareReplay as a temporary work around to Zone.js issues in Firebase v8 with auth, I did not intent to ship this. I've since found work-arounds.

  • Only keepUnstableUntilFirst on redirectResult, shareReplay it
  • Remove shareReplay which causes issues when loading/checking auth lazily
  • Move guards over to .user so token changes will be evaluated
  • Upgrade the node modules in sample

Addresses #2681

@jamesdaniels jamesdaniels merged commit 059547b into master Nov 24, 2020
@jamesdaniels jamesdaniels deleted the auth_guard_early branch November 24, 2020 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants