class RailsBand::ActionView::Event::RenderPartial

A wrapper for the event that is passed to ‘render_partial.action_view`.

def cache_hit

def cache_hit
  @cache_hit ||= @event.payload.fetch(:cache_hit)
end

def identifier

def identifier
  @identifier ||= from_views(@event.payload.fetch(:identifier))
end

def layout

def layout
  return @layout if defined? @layout
  @layout = @event.payload[:layout]&.then { |layout| from_views(layout) }
end