The context has a user (or undefined), a sign in function that sets the default user, and, and a sign out function that removes the user. When the functions that sign the user in and out are synchronous, there are no issues, and everything works as expected. But Firebase has to make a network request, and it is not certain how
1 Comment
Sort: