Check props for deep equality in ActionsNavItems
Created by: tjkandala
Fix #19230 (closed), #19243 (closed)
Regression from #18898, which refactored <ActionsNavItems>
to a function component. It now requires extraContext
to be memoized, or else it will refetch actions on every render.
Fix: memoize extraContext
in <SearchResultsInfoBar>
Update: prevent this issue from happening in the future by checking for deep equality of scope
and extraContext
in <ActionsNavItems>
. It would be hard to memoize Panel scope
, but the object is so small and deep equality check is so fast that it shouldn't matter that it runs on each keystroke.