Skip to content

bug(profile): onAuthStateChanged did not update user profile on react-native #689

Open
@MrHazimAli

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

Screen Shot 2019-04-22 at 3 26 21 PM

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

Screen Shot 2019-04-22 at 3 28 06 PM

Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?

tested on Google Pixel 2 Android 9 on debug mode
Screen Shot 2019-04-22 at 3 47 53 PM

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions