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
In my application I have an AppComponent which renders a module component (e.g. DashboardComponent) dynamically (according to its props). Unfortunately, the context is not passed down in this case.
This is intentional; context is determined by where a component is created (in your mount() function), not where it is rendered (in your App component). Also note that context is experimental and likely to change in future versions.
In case anyone else runs into the same problem: This is a (hackish) way to solve the problem for now: http://jsfiddle.net/madebyherzblut/eAGyj/6/. The module component is created inside the AppComponent to have access to the right context.
But as @spicyj said, the feature is likely to change.
In my application I have an
AppComponent
which renders a module component (e.g.DashboardComponent
) dynamically (according to its props). Unfortunately, the context is not passed down in this case.Test Case: http://jsfiddle.net/madebyherzblut/eAGyj/
If I hard-code the module component it works perfectly. Do I need to pass it manually?
The text was updated successfully, but these errors were encountered: