Hacker News new | ask | show | jobs
by joelbluminator 1758 days ago
Will this get the nod from dhh and make it into Rails? Dhh wdyt?
2 comments

I'm sure I read somewhere (either on viewcomponent.org or on their GitHub) that their end goal is to merge upstream into Rails core.
They 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.
Yeah 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.
I 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.
DHH 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.
I think they just said no _at the time_. However, unless DHH adops it, I don't think it will be Rails default.