Skip to content

Commit cf57791

Browse files
committed
Data can be loaded before React component is mounted.
1 parent ad01b3d commit cf57791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/components/UsefulLinks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const UsefulLinks = React.createClass({
2020
linksUpdate(data) {
2121
this.setState({links: data.links});
2222
},
23-
componentDidMount() {
23+
componentWillMount() {
2424
LinksActions.loadData();
2525
},
2626
render() {

0 commit comments

Comments
 (0)