matestack / matestack-ui-vuejs

Vue.js 3 based reactivity system for Rails. Boost your productivity & easily create reactive web UIs in pure Ruby. Easily extend with pure JavaScript if required. No Opal involved.

Home Page:https://www.matestack.io

Repository from Github https://github.commatestack/matestack-ui-vuejsRepository from Github https://github.commatestack/matestack-ui-vuejs

public_options in IsolatedComponents not working in 3.2.0.beta

tangopium opened this issue · comments

When using an isolated components, there is the option to pass parameters via the public_options. In matestack-ui-vuejs 3.2.0 beta this variable can still be passed to the isolated components, but is not made visible anymore (inside the component it is empty). Taking a look at the source code, I noticed a new public_context, which is working in the expected way.

Suggestion: remove the public_options completely from isolated components to avoid this "silent failure". In this case, the component would raise an error, letting the user know, that public_options cannot be used anymore

Sorry for the late response, I will take care of this. We're currently working on releasing 3.2.0 officially. I'm planning on supporting both public_options and public_context in order to not introduce breaking changes.