Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
feat: call original UNSAFE_componentWillReceiveProps() for React 17 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kemuridama authored Sep 27, 2021
1 parent 73f4b19 commit 779c1ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/container/FluxContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ function create<DefaultProps, Props, State>(
}

UNSAFE_componentWillReceiveProps(nextProps: any, nextContext: any): void {
if (super.UNSAFE_componentWillReceiveProps) {
super.UNSAFE_componentWillReceiveProps(nextProps, nextContext);
}

if (super.componentWillReceiveProps) {
super.componentWillReceiveProps(nextProps, nextContext);
}
Expand Down

0 comments on commit 779c1ca

Please sign in to comment.