Browse Source

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.
master
Leonard Kim 6 years ago
parent
commit
4409bbabb7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      react/features/welcome/components/BlankPage.native.js

+ 1
- 1
react/features/welcome/components/BlankPage.native.js View File

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

Loading…
Cancel
Save