Sfoglia il codice sorgente

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 anni fa
parent
commit
4409bbabb7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      react/features/welcome/components/BlankPage.native.js

+ 1
- 1
react/features/welcome/components/BlankPage.native.js Vedi 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…
Annulla
Salva