File tree Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,10 @@ function easyStateHOC (WrappedComp) {
285
285
}
286
286
287
287
shouldComponentUpdate ( nextProps ) {
288
+ if ( super . shouldComponentUpdate ) {
289
+ return super . shouldComponentUpdate ( )
290
+ }
291
+
288
292
const { props } = this
289
293
const keys = Object . keys ( props )
290
294
const nextKeys = Object . keys ( nextProps )
Original file line number Diff line number Diff line change @@ -4835,6 +4835,10 @@ function easyStateHOC (WrappedComp) {
4835
4835
}
4836
4836
4837
4837
shouldComponentUpdate (nextProps) {
4838
+ if (super.shouldComponentUpdate) {
4839
+ return super.shouldComponentUpdate()
4840
+ }
4841
+
4838
4842
const { props } = this
4839
4843
const keys = Object.keys(props)
4840
4844
const nextKeys = Object.keys(nextProps)
Original file line number Diff line number Diff line change @@ -4835,6 +4835,10 @@ function easyStateHOC (WrappedComp) {
4835
4835
}
4836
4836
4837
4837
shouldComponentUpdate (nextProps) {
4838
+ if (super.shouldComponentUpdate) {
4839
+ return super.shouldComponentUpdate()
4840
+ }
4841
+
4838
4842
const { props } = this
4839
4843
const keys = Object.keys(props)
4840
4844
const nextKeys = Object.keys(nextProps)
Original file line number Diff line number Diff line change @@ -4835,6 +4835,10 @@ function easyStateHOC (WrappedComp) {
4835
4835
}
4836
4836
4837
4837
shouldComponentUpdate (nextProps) {
4838
+ if (super.shouldComponentUpdate) {
4839
+ return super.shouldComponentUpdate()
4840
+ }
4841
+
4838
4842
const { props } = this
4839
4843
const keys = Object.keys(props)
4840
4844
const nextKeys = Object.keys(nextProps)
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ export default function easyStateHOC (WrappedComp) {
32
32
}
33
33
34
34
shouldComponentUpdate ( nextProps ) {
35
+ if ( super . shouldComponentUpdate ) {
36
+ return super . shouldComponentUpdate ( )
37
+ }
38
+
35
39
const { props } = this
36
40
const keys = Object . keys ( props )
37
41
const nextKeys = Object . keys ( nextProps )
You can’t perform that action at this time.
0 commit comments