That works for basic types but not objects. Or I am completely missing it.
It seems to me that the “set state” puts a reference to the object into the custom state and does not duplicate the object.
This is what I’ve done for testing :
- a custom state type “user” is on the page itself
- a button puts current user into the custom state
- then I have a workflow “Make change to thing” that change the custom state object, it changes one of the object fields
- BOOM → the change is reflected to the database “current user” that was originaly set on step 1.
Would you mind setting up a super-quick demo page so I can understand? Thanks