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 07c5115 commit a1eaca6Copy full SHA for a1eaca6
src/Lifecycles/index.ts
@@ -31,7 +31,7 @@ export class Lifecycles extends Component<ILifecyclesProps, {}> {
31
}
32
33
getSnapshotBeforeUpdate(prevProps) {
34
- return this.props.getSnapshotBeforeUpdate(prevProps, this.props);
+ return this.props.getSnapshotBeforeUpdate(prevProps, this.props) || null;
35
36
37
componentDidUpdate (prevProps, prevState, snapshot) {
0 commit comments