Reference value mutation under a nested object #23
Unanswered
gokhantaskan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to modify an object with
title
,description
, andtools
fields. Initially,tools
is an array of objects:I need to modify the object like the following:
I can get the same result using
immer
. When I try to usedefu
, I get the following instead:How can I achieve the first result using
defu
?Beta Was this translation helpful? Give feedback.
All reactions