Skip to content

Commit

Permalink
Do not memoize popover props
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Sep 19, 2024
1 parent 6f615e9 commit f6aa642
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,16 +526,13 @@ function DataviewsViewConfigDropdown( {
_DataViewsViewConfig,
'dataviews-view-config-dropdown'
);
const popoverProps = useMemo(
() => ( {
...DATAVIEWS_CONFIG_POPOVER_PROPS,
id: popoverId,
} ),
[ popoverId ]
);

return (
<Dropdown
popoverProps={ popoverProps }
popoverProps={ {
...DATAVIEWS_CONFIG_POPOVER_PROPS,
id: popoverId,
} }
renderToggle={ ( { onToggle, isOpen } ) => {
return (
<Button
Expand Down

0 comments on commit f6aa642

Please sign in to comment.