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
I'm running into a problem where the mobx DevTools miss some actions that run synchronously with the page load (its an authentication check that gets run by a react-router onEnter callback).
I dug a little deeper and found that it's caused by running the restoreLogFromLocalstorage in componentDidMount in LogControl here:
Would it break things to run it in componentWillMount, which (I think) would cause it to run before those actions? Don't know if that messes up other things.
For now, I've worked around it by running this in my own Root component's componentWillMount:
I'm running into a problem where the mobx DevTools miss some actions that run synchronously with the page load (its an authentication check that gets run by a react-router
onEnter
callback).I dug a little deeper and found that it's caused by running the
restoreLogFromLocalstorage
incomponentDidMount
inLogControl
here:Would it break things to run it in
componentWillMount
, which (I think) would cause it to run before those actions? Don't know if that messes up other things.For now, I've worked around it by running this in my own Root component's
componentWillMount
:The text was updated successfully, but these errors were encountered: