Replies: 1 comment
-
|
Sure, send PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now only the
setPaththat under the hood uses thesetByKeyfunction is exported. However,setPathaccepts only a string path, whensetByKeyaccepts an array path.I wrote a wrapper around deepMap, and I want to update store's value like it done in
setKeymethod. But I can't because it requires string and not an array which I only have.I can copy that function and functions it depends on or mock used methods like below
But using function directly would be better.
So I think
setByKeyfunction can be exported.Beta Was this translation helpful? Give feedback.
All reactions