zoid icon indicating copy to clipboard operation
zoid copied to clipboard

prop is read-only after doing updateProp

Open mrudult opened this issue 2 years ago • 0 comments

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)

mrudult avatar Jul 11 '22 19:07 mrudult