Module: ViewComponent::RequestDetails

Defined in:
lib/view_component/request_details.rb

Overview

LookupContext computes and encapsulates @details for each request so that it doesn’t need to be recomputed on each partial render. This data is wrapped in ActionView::TemplateDetails::Requested and used by instances of ActionView::Resolver to choose which template best matches the request.

ActionView considers this logic internal to template/partial resolution. We’re exposing it to the compiler via ‘refine` so that ViewComponent can match Rails’ template picking logic.