Selaa lähdekoodia

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 7 vuotta sitten
vanhempi
commit
4409bbabb7
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      react/features/welcome/components/BlankPage.native.js

+ 1
- 1
react/features/welcome/components/BlankPage.native.js Näytä tiedosto

@@ -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…
Peruuta
Tallenna