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 4a12052 commit 061fa09Copy full SHA for 061fa09
package.json
@@ -59,8 +59,7 @@
59
},
60
"dependencies": {
61
"async-validator": "^3.0.3",
62
- "lodash": "^4.17.4",
63
- "rc-util": "^4.6.0",
+ "rc-util": "^4.17.0",
64
"warning": "^4.0.3"
65
}
66
src/utils/valueUtil.ts
@@ -1,5 +1,5 @@
1
-import setIn from 'lodash/fp/set';
2
-import get from 'lodash/get';
+import get from 'rc-util/lib/utils/get';
+import set from 'rc-util/lib/utils/set';
3
import {
4
InternalNamePath,
5
NamePath,
@@ -30,7 +30,7 @@ export function setValue(
30
namePath: InternalNamePath,
31
value: StoreValue,
32
): Store {
33
- const newStore = setIn(namePath, value, store);
+ const newStore = set(store, namePath, value);
34
return newStore;
35
36
0 commit comments