From 4409bbabb79c17b16fd31557f15fc356d75693e2 Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Fri, 2 Nov 2018 09:00:14 -0700 Subject: [PATCH] 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. --- react/features/welcome/components/BlankPage.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/welcome/components/BlankPage.native.js b/react/features/welcome/components/BlankPage.native.js index 60c5e9a0e..8a71af59f 100644 --- a/react/features/welcome/components/BlankPage.native.js +++ b/react/features/welcome/components/BlankPage.native.js @@ -29,7 +29,7 @@ class BlankPage extends Component { * @inheritdoc * @returns {void} */ - componentWillMount() { + componentDidMount() { this.props.dispatch(destroyLocalTracks()); }