Skip to content

Commit

Permalink
Fixed component update
Browse files Browse the repository at this point in the history
  • Loading branch information
wufe committed May 22, 2020
1 parent 4a05769 commit 5644d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Particles.tsx
Expand Up @@ -105,7 +105,7 @@ export default class Particles extends Component<ParticlesProps,
}

shouldComponentUpdate(nextProps: Readonly<ParticlesProps>) {
return !this.state.library || !isEqual(nextProps, this.props);
return !isEqual(nextProps, this.props);
}

componentDidUpdate() {
Expand Down

0 comments on commit 5644d28

Please sign in to comment.