zoid
zoid copied to clipboard
prop is read-only after doing updateProp
I've defined props something like this:
props: {}
Then, in the parent, I do:
const widgetPreview = Widget({ preview: true });
widgetPreview.updateProps({ preview: true, color: 'blue' });
I get an error in the console as:
Uncaught Error: "preview" is read-only
Exception trace leads to this line.
I'm using zoid version 9.0.82
(and also tried with the latest 9.0.87
)