dot-prop-immutable icon indicating copy to clipboard operation
dot-prop-immutable copied to clipboard

Multiple assignments

Open brcnblc opened this issue 7 years ago • 4 comments

It would be nice if it supported multiple assignments. For ex: dotProp.mset (state, {path1 : value1, path2 : value2})

brcnblc avatar Feb 07 '19 15:02 brcnblc

Maybe like #16

gsouf avatar May 31 '20 19:05 gsouf

Hi @gsouf ,

I will try to have a look into that ASAP. Thanks for the suggestion.

hilleer avatar Jun 12 '20 07:06 hilleer

@hilleer thanks for output would be nice if multiple assignement was optimized in order not to recreate the whole object everytime. We have had some performances issues with that when updating many nested fields on large objects at once. Solved by extracting object and updating them by hand before injecting them again, but we lost the benefit of the ease of use of dot prop.

Do you think there is something we could do for that?

gsouf avatar Jun 12 '20 07:06 gsouf

Not sure about that @gsouf. Will have a deeper look into it...

hilleer avatar Jul 08 '20 12:07 hilleer