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 1.8 beta 1 the page throws Uncaught TypeError: Cannot read property 'pushChildView' of null
Here's the failing jsbin: http://emberjs.jsbin.com/vowid/4/edit
It looks like the parent view's render buffer hasn't been set up yet but I'm pretty unfamiliar with the rendering lifecycle at this point. Is this a regression from 1.7 or was I doing it wrong in the first place?
The text was updated successfully, but these errors were encountered:
registerBoundHelper is to make helpers that process simple bindings for formatting, the helper creates a view that doesn't support children, so you can't currently call another helper that adds a view. Prior to this beta, this sort of worked, though it had edge cases.
We are continuing to improve consistency of unquoted paths meaning it is bound to that property, so hopefully {{#view boundView ...}} will work soon. We likely can add a {{#component boundComponent }} too. There is ongoing work to make all the helpers consistent that hopefully will land in this beta. You can also use the private helper API, but it's kind of complex at the moment, and you will have to redo it when htmlbars lands.
Thanks for the explanation! I'm going to close this issue for now since my problem falls somewhat into the "you're doing it wrong" category. I'll check on the forum to see if anyone has other patterns for polymorphic-ish component rendering.
I'm using a handlebars helper that calls a component based on its parameter.
You can see a working jsbin with beta 1.7 here
In 1.8 beta 1 the page throws
Uncaught TypeError: Cannot read property 'pushChildView' of null
Here's the failing jsbin: http://emberjs.jsbin.com/vowid/4/edit
It looks like the parent view's render buffer hasn't been set up yet but I'm pretty unfamiliar with the rendering lifecycle at this point. Is this a regression from 1.7 or was I doing it wrong in the first place?
The text was updated successfully, but these errors were encountered: