The new useDialogContent hook was creating a component (DialogContent) on every render and then rendering it. This component is a "new" component every time therefore causing the component to render nonstop.
This could also be solved using useMemo but I don't see any use to it since DialogContent has no state.
Description
The new useDialogContent hook was creating a component (DialogContent) on every render and then rendering it. This component is a "new" component every time therefore causing the component to render nonstop. This could also be solved using useMemo but I don't see any use to it since DialogContent has no state.
Changelog
Incubator.Dialog - Fixed content renders.
Additional info
MADS-4444