diff --git a/src/components/dialogs/index.tsx b/src/components/dialogs/index.tsx index 58eecb7705..5122703ccd 100644 --- a/src/components/dialogs/index.tsx +++ b/src/components/dialogs/index.tsx @@ -89,7 +89,11 @@ export function GlobalDialog() { popTopDialog() }, [popTopDialog]) - return activeDialogs.map(({component: Comp, props, options}, i) => { - return - }) + return React.useMemo( + () => + activeDialogs.map(({component: Comp, props, options}, i) => { + return + }), + [activeDialogs, cleanup], + ) }