Skip to content

Commit

Permalink
fix: use componentDidUpdate instead
Browse files Browse the repository at this point in the history
Fix #73
  • Loading branch information
alampros committed Oct 18, 2019
1 parent bade928 commit 1ad95f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReactConfetti.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ReactConfettiInternal extends Component<Props> {
}
}

getSnapshotBeforeUpdate() {
componentDidUpdate() {
const confettiOptions = extractCanvasProps(this.props)[0]
if(this.confetti) {
this.confetti.options = confettiOptions as IConfettiOptions
Expand Down

0 comments on commit 1ad95f9

Please sign in to comment.