Skip to content

Conversation

@jhuleatt
Copy link
Collaborator

fixes #155

Due to a bug in the internals of useObservable, sometimes useUser would emit null when it was the child of an <AuthCheck> component, which should be impossible.

To fix this, I created a test (called always returns a user if inside an component) and verified that it failed in the existing ReactFire. Then, I fixed userObservable and verified that the test passed.

@jhuleatt
Copy link
Collaborator Author

merging this since it's a bugfix and tests are passing

@jhuleatt jhuleatt merged commit 803159c into master Oct 18, 2019
@jhuleatt jhuleatt deleted the jh-authcheck-fix branch February 26, 2020 23:13
@FirebaseExtended FirebaseExtended locked and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

useUser initial value null within AuthCheck children

1 participant