Skip to content

Commit

Permalink
Update 13.js
Browse files Browse the repository at this point in the history
  • Loading branch information
baooab authored Nov 7, 2024
1 parent 9eadfe9 commit c86e36f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Errors/Codes/13.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function ErrorCode13(props) {
<h1>#13: Parcel is not mountable.</h1>
<p>
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.
</p>
<h2>To fix:</h2>
Expand All @@ -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()
})
`}
Expand Down

0 comments on commit c86e36f

Please sign in to comment.