spencercarli / react-native-meteor-boilerplate

MIT License
628 stars 139 forks source link

Sign in error state wiped out #53

Closed spencercarli closed 8 years ago

spencercarli commented 8 years ago

From https://github.com/spencercarli/react-native-meteor-boilerplate/issues/21#issuecomment-243082680

I just realised there's still a problem here. Sometimes it shows the error, and sometimes the screen just flashes and the email/password field just go blank with no error message shown.

Seems like the issue is due to what you wrote above:

What's happening is that when you press sign in/up with incorrect values the callback is being handled and setting the error state. The problem here is that when you press login/createAccount you set Meteor.loggingIn() to true, thus showing the Loading component.

The screen loads, the component gets unmounted, and all state is wiped.