Skip to content

Commit 7da8c0d

Browse files
authored
Just remove the code
1 parent 7e2a134 commit 7da8c0d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/components/connectAdvanced.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,6 @@ export default function connectAdvanced(
151151

152152
const nextProps = sourceSelector(state, props)
153153

154-
// Conditional test costs more than just assigning each time
155-
// See: https://jsperf.com/conditional-vs-not
156-
// if (lastDerivedProps === nextProps) {
157-
// return lastDerivedProps
158-
// }
159-
160154
lastDerivedProps = nextProps
161155
return lastDerivedProps
162156
}

0 commit comments

Comments
 (0)