From a56b909a7b0769bc76b060dd19e1acc863c7211c Mon Sep 17 00:00:00 2001 From: Cody Bennett Date: Sat, 4 Nov 2023 17:49:13 -0500 Subject: [PATCH] chore: lint --- packages/fiber/src/core/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/fiber/src/core/index.tsx b/packages/fiber/src/core/index.tsx index ffb3fc3b99..f694d7b973 100644 --- a/packages/fiber/src/core/index.tsx +++ b/packages/fiber/src/core/index.tsx @@ -522,6 +522,7 @@ function Portal({ ...rest, } as RootState }, + // eslint-disable-next-line react-hooks/exhaustive-deps [state], ) @@ -555,10 +556,12 @@ function Portal({ unsub() usePortalStore.destroy() } + // eslint-disable-next-line react-hooks/exhaustive-deps }, []) React.useEffect(() => { usePortalStore.setState((injectState) => inject(previousRoot.getState(), injectState)) + // eslint-disable-next-line react-hooks/exhaustive-deps }, [inject]) return (