From 5e5234db3677ac0f91e4295d6351ec516d0c6bad Mon Sep 17 00:00:00 2001 From: Tomi Virkki Date: Fri, 15 Dec 2023 14:30:50 +0200 Subject: [PATCH] cleanup --- src/renderers/useRenderer.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderers/useRenderer.ts b/src/renderers/useRenderer.ts index dbe62b18..5085b85a 100644 --- a/src/renderers/useRenderer.ts +++ b/src/renderers/useRenderer.ts @@ -1,4 +1,3 @@ -import { flushSync } from 'react-dom'; import { type ComponentType, createElement, @@ -8,7 +7,7 @@ import { useCallback, useReducer, } from 'react'; -import { createPortal } from 'react-dom'; +import { createPortal, flushSync } from 'react-dom'; import type { Slice, WebComponentRenderer } from './renderer.js'; export type UseRendererResult = readonly [