We can not listen to "flush" on componentWillMount due to that also triggers on the server. Moved it to componentDidMount.
This should not cause any problems, as an immediate trigger of signals with previous position of listener would cause an error. Should not start updating the app before things are mounted.
We can not listen to "flush" on
componentWillMount
due to that also triggers on the server. Moved it tocomponentDidMount
.This should not cause any problems, as an
immediate
trigger of signals with previous position of listener would cause an error. Should not start updating the app before things are mounted.