From e879ceadb417441009e71a126a9bcb5c46b73806 Mon Sep 17 00:00:00 2001 From: Bartosz Adamczyk Date: Fri, 19 May 2023 11:48:09 +0200 Subject: [PATCH] use local module for useIsomorphicLayout --- package.json | 3 +-- src/components/utils/useFirstPaint.ts | 2 +- yarn.lock | 5 ----- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index f16dab6dce..52d0041e5d 100644 --- a/package.json +++ b/package.json @@ -37,8 +37,7 @@ "meow": "^5.0.0", "patch-package": "^6.5.1", "path": "^0.12.7", - "postinstall-postinstall": "^2.1.0", - "use-isomorphic-layout-effect": "^1.1.2" + "postinstall-postinstall": "^2.1.0" }, "devDependencies": { "@babel/cli": "^7.8.3", diff --git a/src/components/utils/useFirstPaint.ts b/src/components/utils/useFirstPaint.ts index aa11b7f9b9..69435a7a66 100644 --- a/src/components/utils/useFirstPaint.ts +++ b/src/components/utils/useFirstPaint.ts @@ -1,4 +1,4 @@ -import useIsomorphicLayoutEffect from 'use-isomorphic-layout-effect'; +import {useIsomorphicLayoutEffect} from './useIsomorphicLayoutEffect'; export const useFirstPaint = (cb: () => void) => { useIsomorphicLayoutEffect(() => { diff --git a/yarn.lock b/yarn.lock index d85c8290d9..8c338f6c05 100644 --- a/yarn.lock +++ b/yarn.lock @@ -20068,11 +20068,6 @@ url@^0.11.0: punycode "1.3.2" querystring "0.2.0" -use-isomorphic-layout-effect@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz#497cefb13d863d687b08477d9e5a164ad8c1a6fb" - integrity sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA== - use@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"