You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`FlowPresenter#start_node` is called several times on the same instance within
a single request. This meant that we were unnecessarily creating several
instances of `StartNodePresenter`.
An instance of `SmartAnswer::ErbRenderer` is created for each of these and an
instance of `ActionView::Base` is created for each of those.
We can reuse the start node presenter by memo-izing it. It's safe to do this,
because a new `FlowPresenter` instance is created in every request within the
`SmartAnswersController#find_smart_answer` method.
0 commit comments