Why ViewComponent::Base#render does not reuse view context? #1022
-
So looking at https://github.com/github/view_component/blob/main/lib/view_component/base.rb#L145-L147 which says that I have a component that renders a child component within a thx |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Just an educated guess here, but I'd imagine it's a deliberate choice. It's probably where some of the performance benefit of ViewComponent comes from relative to plain Action View. @BlakeWilliams has something in the works that might change this if it's merged, however. |
Beta Was this translation helpful? Give feedback.
-
This will no longer be the case in |
Beta Was this translation helpful? Give feedback.
This will no longer be the case in
v4
: #2287