react-firebase-hooks icon indicating copy to clipboard operation
react-firebase-hooks copied to clipboard

Suggestion for updating user In useAuthState

Open n1ght-hunter opened this issue 3 years ago • 0 comments

I've just been using your package for Auth hooks and noticed that it has no support for update of the current user i.e. when you change email or display name the state isn't updated.

i have gone an written my own simpler way of handling Firebase Auth. but thought since you already have your own hooks for updating email, display name etc it might be worth putting in a callback that runs when ever those hooks are run that updates useAuthState user to auth.currentUser.

n1ght-hunter avatar Apr 28 '22 00:04 n1ght-hunter