Commit 849ce41
Minor optimization: remove conditional (#1131)
* Minor optimization: remove conditional
The conditional in selectDerivedProps is unnecessary. The code behaves
identically now but saves about 10% of performance for that portion of
the function.
See: https://jsperf.com/conditional-vs-not
Code left in place but commented in case someone ever wants to add
something like it back for "clarity".
* Just remove the code1 parent f2ac4cc commit 849ce41
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 154 | | |
159 | 155 | | |
160 | 156 | | |
| |||
0 commit comments