Skip to content

Commit f87a393

Browse files
committed
Explicitly reference window global
1 parent 11599cc commit f87a393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/Meetup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export default class Meetup extends React.Component {
1212
venue: {name: ''}
1313
}
1414

15-
componentWillMount () {
16-
fetch(NEXT_MEETUP_URI)
15+
componentDidMount () {
16+
window.fetch(NEXT_MEETUP_URI)
1717
.then((res) => res.json())
1818
.then((json) => this.setState(json))
1919
}

0 commit comments

Comments
 (0)