studio
studio copied to clipboard
the usage of assignProperty in the worker-dashboard-component-context.ts
the assignPropety function is added iterators
parameter.
There are basically two ways to use:
const iterators =
flowContext.dataContext.get(FLOW_ITERATOR_INDEXES_VARIABLE) || [];
assignProperty( flowState, this, "data", value, iterators);
and
// serial.tsx
context.assignProperty(
"connection",
{
id: serialConnection.id,
status: serialConnection.status
},
undefined
);
What is the purpose of the parameter iterators
?"
When should I use FLOW_ITERATOR_INDEXES_VARIABLE
to get iterators
and when should I use undefined
directly?