Skip to content

Commit

Permalink
fix(addons/InfoBox): use setState in lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Sep 16, 2017
1 parent dd59c25 commit fb6658e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/addons/InfoBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ export class InfoBox extends React.PureComponent {
const infoBox = new GoogleMapsInfobox()
construct(InfoBox.propTypes, updaterMap, this.props, infoBox)
infoBox.setMap(this.context[MAP])
this.state = {
this.setState({
[INFO_BOX]: infoBox,
}
})
}

componentDidMount() {
Expand Down

0 comments on commit fb6658e

Please sign in to comment.