Ver código fonte

retrieve recently updated data on init

Yuki Takei 5 anos atrás
pai
commit
c24f7fc29f
1 arquivos alterados com 4 adições e 0 exclusões
  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);
     this.reloadData = this.reloadData.bind(this);
   }
   }
 
 
+  async componentDidMount() {
+    this.reloadData();
+  }
+
   async reloadData() {
   async reloadData() {
     const { appContainer } = this.props;
     const { appContainer } = this.props;