Skip to content

Commit

Permalink
Flux - 21 - Refetching Data on Rerender
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenGrider committed Jul 5, 2015
1 parent c8ea3ad commit 265e9cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imgur-client/src/components/topic.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ module.exports = React.createClass({
componentWillMount: function() {
Actions.getImages(this.props.params.id);
},
componentWillReceiveProps: function(nextProps){
Actions.getImages(nextProps.params.id);
},
render: function() {
return <div>

Expand Down

0 comments on commit 265e9cd

Please sign in to comment.