Open marwaSZ opened 5 years ago
Hi again, I just wonder why are we connecting again when logging out the user, in react-native-meteor/src/user/User.js :
logout(callback) {
call('logout', err => {
this.handleLogout();
this.connect();
typeof callback == 'function' && callback(err);
});
},
I had to comment this.connect();
and it works now.
every time I reconnect the user, it works very well.
Thanks
Hi, I have created a simple App that connects to a remote server and just do login a user and logout. When i reload app when user is logged In and change network, everything works well as expected, the server reconnect and the user still exists
After LoginWithPassword and charging the user connected view, when changing Network, the server disconnects and reconnect in a normal way, except that after a few seconds it goes to Login page with user null and every time i click on login, the user is still null and i still get the login page. When i reload in this case, i have the screen userConnected.
My code is Here :
Demo_BUG