Browse Source

improve performance for PageHistory

Yuki Takei 6 năm trước cách đây
mục cha
commit
2226fff203
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {