Mitar
Mitar
It would be really great if you could provide some small reproduction. A repository, where you put together what you are trying to do. A simple test case, mocking everything...
You can do: ``` ViewStackComponent = BlazeComponent.extendComponent({ add: function (name) { var component = new (BlazeComponent.getComponent(name))(); var renderedComponent = component.renderComponent(this); var view = Blaze.renderWithData(comp, data, this.firstNode()); // Insert question here...
I do not get you? You have `onRendered` method in your component you can use. ``` coffee class MyComponent extends BlazeComponent @register 'MyComponent' template: -> 'MyComponent' onRendered: -> console.log 'I...
Alternatively, you can also do: ``` javascript ViewStackComponent = BlazeComponent.extendComponent({ add: function (name) { var comp = new (BlazeComponent.getComponent(name))(); var renderedComponent = comp.renderComponent(this); var view = Blaze.renderWithData(comp, data, this.firstNode()); this.autorun(function...
No. This is not reusable nor composable. You should put hooks into the class method, so that you can reuse it in your children implementations. If you attach hooks like...
> But the workaround works, it just feels a bit verbose. Which workaround? My snippets above are not workaround, but normal code. :-) > I'm not sure if I understand...
> Because that's a hard link between the child and the parent. It must be my old school thinking, but to me that seemed inappropriate since it's possible that the...
Make a reproduction please.
Instead of `Blaze.remove` analog, `instance.removeComponent()` has been implemented in 21d9160e58b3380cb114a8ef47a489d501956ed8.
I will copy a comment from [here](https://github.com/MeteorCommunity/discussions/issues/5#issuecomment-91045305): My current plan is to allow wrapping web components into this components. So that you could use Blaze, React, or Polymer components interchangeably....