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 f2776ab commit 2277cfeCopy full SHA for 2277cfe
src/Lifecycles/index.ts
@@ -26,6 +26,7 @@ export class Lifecycles extends Component<ILifecyclesProps, {}> {
26
}
27
28
shouldComponentUpdate (nextProps) {
29
+ const fn = this.props.shouldUpdate;
30
return fn ? Boolean(fn(nextProps, this.props)) : true;
31
32
0 commit comments