Parcourir la 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 il y a 7 ans
Parent
révision
4409bbabb7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      react/features/welcome/components/BlankPage.native.js

+ 1
- 1
react/features/welcome/components/BlankPage.native.js Voir le fichier

@@ -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
 

Chargement…
Annuler
Enregistrer