소스 검색

improve performance for PageHistory

Yuki Takei 6 년 전
부모
커밋
2226fff203
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/client/js/components/PageHistory.jsx

+ 1 - 1
src/client/js/components/PageHistory.jsx

@@ -24,7 +24,7 @@ class PageHistory extends React.Component {
     this.onDiffOpenClicked = this.onDiffOpenClicked.bind(this);
   }
 
-  async componentDidMount() {
+  async componentWillMount() {
     const pageId = this.props.pageId;
 
     if (!pageId) {