Sfoglia il codice sorgente

retrieve recently updated data on init

Yuki Takei 6 anni fa
parent
commit
c24f7fc29f
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/client/js/components/Sidebar/History.jsx

+ 4 - 0
src/client/js/components/Sidebar/History.jsx

@@ -35,6 +35,10 @@ class History extends React.Component {
     this.reloadData = this.reloadData.bind(this);
   }
 
+  async componentDidMount() {
+    this.reloadData();
+  }
+
   async reloadData() {
     const { appContainer } = this.props;