ref(blank-page): destroy local track after mount

To kill componentWillMount, call destroyLocalTrack after mount.
Navigation to the blank page was synthetically forced and no
UI issues were noticed, possibly because destroyLocalTrack may
already be async so destruction may already have been occurring
after mount.
This commit is contained in:
Leonard Kim 2018-11-02 09:00:14 -07:00 committed by Leonard Kim
parent d6216f21d5
commit 4409bbabb7
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class BlankPage extends Component<Props> {
* @inheritdoc
* @returns {void}
*/
componentWillMount() {
componentDidMount() {
this.props.dispatch(destroyLocalTracks());
}