Skip to content

Commit

Permalink
solve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
GoreStarry committed Nov 22, 2017
2 parents 0726612 + 6aef87c commit 8abf6c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pages/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
connectReply,
updateReplyConnectionStatus,
voteReply,
reset,
} from '../redux/articleDetail';

import { detailStyle, tabMenuStyle } from './article.styles';
Expand Down Expand Up @@ -125,6 +126,11 @@ class ArticlePage extends React.Component {
};
};

componentWillUnmount() {
const { dispatch } = this.props;
dispatch(reset());
}

renderTabMenu = () => {
const { data } = this.props;
const { tab } = this.state;
Expand Down
2 changes: 1 addition & 1 deletion redux/articleDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const loadAuth = id => dispatch => {
});
};

export const reset = () => createAction(RESET);
export const reset = createAction(RESET);

const reloadReply = articleId => dispatch =>
gql`
Expand Down

0 comments on commit 8abf6c2

Please sign in to comment.