Просмотр исходного кода

improve performance for PageHistory

Yuki Takei 6 лет назад
Родитель
Сommit
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);
     this.onDiffOpenClicked = this.onDiffOpenClicked.bind(this);
   }
   }
 
 
-  async componentDidMount() {
+  async componentWillMount() {
     const pageId = this.props.pageId;
     const pageId = this.props.pageId;
 
 
     if (!pageId) {
     if (!pageId) {