We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ad94d commit f2776abCopy full SHA for f2776ab
src/Lifecycles/index.ts
@@ -26,8 +26,7 @@ export class Lifecycles extends Component<ILifecyclesProps, {}> {
26
}
27
28
shouldComponentUpdate (nextProps) {
29
- const fn = this.props.shouldUpdate;
30
- return fn ? fn(nextProps, this.props) : true;
+ return fn ? Boolean(fn(nextProps, this.props)) : true;
31
32
33
getSnapshotBeforeUpdate(prevProps) {
0 commit comments