I tried creating an "editable props" example using the runtime template to render the component on the fly. However, the runtime template creates an anonymous component with the "data" set from the "data()" function of the parent.
This never changes after component initialisation, therefore changes to parent state will never update in the anonymous component. I think it would be nice (maybe optionally) to allow updates to the component local state, just as you can update the template :)
I tried creating an "editable props" example using the runtime template to render the component on the fly. However, the runtime template creates an anonymous component with the "data" set from the "data()" function of the parent.
This never changes after component initialisation, therefore changes to parent state will never update in the anonymous component. I think it would be nice (maybe optionally) to allow updates to the component local state, just as you can update the template :)
Example https://codesandbox.io/s/vjylx5kq4l