Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prop is read-only after doing updateProp #409

Open
mrudult opened this issue Jul 11, 2022 · 0 comments
Open

prop is read-only after doing updateProp #409

mrudult opened this issue Jul 11, 2022 · 0 comments

Comments

@mrudult
Copy link

mrudult commented Jul 11, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant