From c86e36fe090b14bae7abb0b39349a5ab4d0de9a6 Mon Sep 17 00:00:00 2001 From: zhangbao Date: Thu, 7 Nov 2024 19:51:33 +0800 Subject: [PATCH] Update 13.js --- src/components/Errors/Codes/13.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Errors/Codes/13.js b/src/components/Errors/Codes/13.js index 539245aa2..6b9d98402 100644 --- a/src/components/Errors/Codes/13.js +++ b/src/components/Errors/Codes/13.js @@ -7,7 +7,7 @@ export default function ErrorCode13(props) {

#13: Parcel is not mountable.

Parcel {props.getErrorCodeArg(0, "unknown name")} is currently in{" "} - {props.getErrorCodeArg(1)} status. You may only call parcel.unmount() + {props.getErrorCodeArg(1)} status. You may only call parcel.mount() when the parcel is in NOT_MOUNTED status.

To fix:

@@ -18,7 +18,7 @@ export default function ErrorCode13(props) { const parcel = mountParcel(() => import('./some-parcel.js'), customProps); parcel.unmount().then(() => { - Now the parcel is guaranteed to be in NOT_MOUNTED status, and you can call parcel.mount() + // Now the parcel is guaranteed to be in NOT_MOUNTED status, and you can call parcel.mount() parcel.mount() }) `}