From 8412f8cdc82a7990f48df1854252a945081a0851 Mon Sep 17 00:00:00 2001 From: ardor1104 <87302777+ardor1104@users.noreply.github.com> Date: Thu, 8 Sep 2022 09:17:36 +0900 Subject: [PATCH 1/2] chor: version updated 0.0.76 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 26077b5..f590eb4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@transverse/evo-ui", - "version": "0.0.75", + "version": "0.0.76", "description": "Stylish and exquisite React component library", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", From 37e2159cf71ea20485b1184dcf2c990cc87e28e4 Mon Sep 17 00:00:00 2001 From: sehvdi <74778253+sehvdi@users.noreply.github.com> Date: Mon, 26 Sep 2022 16:34:14 +0900 Subject: [PATCH 2/2] =?UTF-8?q?SSR=20=ED=99=98=EA=B2=BD=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=ED=86=A0=EC=8A=A4=ED=8A=B8=EB=A1=9C=20=EC=9D=B8=ED=95=B4=20?= =?UTF-8?q?=ED=84=B0=EC=A7=80=EB=8A=94=20=EB=B2=84=EA=B7=B8=20(#88)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(evoui/components/Toast/toast): ready for document(SSR) --- src/evoui/components/Toast/toast.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/evoui/components/Toast/toast.tsx b/src/evoui/components/Toast/toast.tsx index 12147df..76ebf80 100644 --- a/src/evoui/components/Toast/toast.tsx +++ b/src/evoui/components/Toast/toast.tsx @@ -386,7 +386,13 @@ function ToastCanvas() { * main toast component */ export function Toast() { - return createPortal(, document.body); + const [isDocumentReady, setIsDocumentReady] = useState(false); + + useEffect(() => { + setIsDocumentReady(true); + }, []); + + return isDocumentReady && createPortal(, document.body); } /**