소스 검색

retrieve recently updated data on init

Yuki Takei 6 년 전
부모
커밋
c24f7fc29f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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;