You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi thanks for you tut. I wonder if manipulating the state in class LoginPage this.setState({loading: true}); is good practice with mobx. I would assume so, as you handle the state completely within the component. But then you don't need the AppState loading property right?
The text was updated successfully, but these errors were encountered:
Hi, yes I think i initially i used the appState loading, but for some reason i changed it to a normal state. I think you can do everything with mobX. I will look again what was the reason for it.
So the reason is that this is renderModal is a function and mobX cannot determine the depency to loading so it would not rerender automatically in this case. So i use a normal setState to trigger rerendering.
Hi thanks for you tut. I wonder if manipulating the state in class LoginPage
this.setState({loading: true});
is good practice with mobx. I would assume so, as you handle the state completely within the component. But then you don't need the AppState loading property right?The text was updated successfully, but these errors were encountered: