4 ms·
Will this get the nod from dhh and make it into Rails? Dhh wdyt?
by joelbluminator 5y ago
Will this get the nod from dhh and make it into Rails? Dhh wdyt?
- finniananderson 5y agoI'm sure I read somewhere (either on viewcomponent.org or on their GitHub) that their end goal is to merge upstream into Rails core.
- joelbluminator 5y agoThey merged the ability to hijack the renderer already in Rails 6 I think, which this gem uses. But if they wanted to merge this one into Rails , Rails 7 would have been a good timing. So I'm not really sure this will go into Rails actually.
- finniananderson 5y agoYeah that is a good point. Rails 7 is going with importmaps by default too, further moving away from the JS ecosystem (unless you want it) which would've paired nicely with merging VC.
- jrochkind1 5y agoI think Rails decided they didn't want it, but API so that ViewComponent can be used without patching Rails is already there in Rails 6.1.
- ksec 5y agoDHH said no to View Component, previously called ActionView::Component. I think there was another Rails Core that didn't like it much due to its additional complexity or something. But that was in 2019?. May be things have changed.
- strzibny 5y agoI think they just said no _at the time_. However, unless DHH adops it, I don't think it will be Rails default.