Ver Fonte

improve performance for PageHistory

Yuki Takei há 6 anos atrás
pai
commit
2226fff203
1 ficheiros alterados com 1 adições e 1 exclusões
  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) {