Recursive Write
#1376
Replies: 1 comment 1 reply
-
I think the reducer is highly related. Let me try to figure it out myself. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my customized state, I have a state variable which is a dictionary, the key is id and the value is an object. Is there a way to "deep write" over the object values based on the node returned dictionary?
For example, I have state
Upon the item returned from an arbitrary node as the format
{items: {item.item_id: item}}
, I am hoping that if the item already exits in theregistrationState.items
, it only writes values from the new item (in dictionary). This is equivalent toupsert
. Is there a way that I can do that?Beta Was this translation helpful? Give feedback.
All reactions