You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to double check whether we need to use this or not. If we did this, this will goes back to the older way for complex data flows here and there.
What we really need is a way to push some data to childComponents. Try to send a reactive variable with the params. We can find a good patterns to do that.
It appears as though you can't actually call the actions of a child component from a parent whatever context you're in. Maybe it's worth adding this in the Template / UI context before looking to extend the ability to within a component context.
The primary use case for us is trying to reset long living form components after submission events, which seems to be either highly inelegant or requires direct DOM access (something we try to avoid).
This is very similar to the FlowComponents.child() but inside the component itself. So, we can access states and actions.
But we need to make sure, when this used inside a state, it won't get reactive. If need reactivity, we should be able to use it in
this.autorun()
We can use Environment variables for this.
The text was updated successfully, but these errors were encountered: