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
-
Right now only the
setPath
that under the hood uses thesetByKey
function is exported. However,setPath
accepts only a string path, whensetByKey
accepts an array path.I wrote a wrapper around deepMap, and I want to update store's value like it done in
setKey
method. 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
setByKey
function can be exported.Beta Was this translation helpful? Give feedback.
All reactions