bug(profile): onAuthStateChanged did not update user profile on react-native #689
Description
Do you want to request a feature or report a bug?
bug
What is the current behavior?
User can use the app without login, but if the user login, they can see their profile data.
after login, onAuthStateChanged is triggered, auth is updated with login user but profile still empty. this only occurring during sign in.. for sign out, user profile automatically cleared. the only way to get the profile right now is to kill the app and open it back. then profile is loaded inside redux store
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox or similar.
What is the expected behavior?
once user login, onAuthStateChanged is triggered and get the latest profile of the user during signout and sign in
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?