Nick Sutterer
Nick Sutterer
I can only reply to 2.) and I think it looks totally fine to me. The point of Cells is to get away from ugly view fragment caching by modelling...
Bring it on, sounds like a good feature!
Yeah, but we have a better internal API where you can find the respective state template and hash it, on the class level. No problem! I'm here if you need...
https://gitter.im/trailblazer/chat
http://trailblazer.to/gems/cells/api.html#yield The `cell` helper doesn't pass your block on.
Actually, it's not the `cell` "helper" but `::call` that doesn't pass on the block: https://github.com/apotonick/cells/blob/master/lib/cell/view_model.rb#L45 I can't remember exactly but there was some problem...?!?!?!
The problem is the way ERB is implemented for Rails views: it writes to a stupid instance variable and then Rails changes this variable (aka output buffer) globally when capturing...
I think this is a misunderstanding here in the core team, not sure why there's a pointless 4.5.0 version? :thinking: :thought_balloon:
@ramontayag !!! :heart_eyes:
Hey @richard-kramer let me finally have a look into that, unless @seuros sheds some light onto this? Sorry for the delay, with ViewComponent it's kind of pointless for us...