Skip to content

Commit 265e9cd

Browse files
committed
Flux - 21 - Refetching Data on Rerender
1 parent c8ea3ad commit 265e9cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

imgur-client/src/components/topic.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ module.exports = React.createClass({
1515
componentWillMount: function() {
1616
Actions.getImages(this.props.params.id);
1717
},
18+
componentWillReceiveProps: function(nextProps){
19+
Actions.getImages(nextProps.params.id);
20+
},
1821
render: function() {
1922
return <div>
2023

0 commit comments

Comments
 (0)