Browse Source

retrieve recently updated data on init

Yuki Takei 6 years ago
parent
commit
c24f7fc29f
1 changed files with 4 additions and 0 deletions
  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;