Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 251f25a

Browse files
committed
Updated post 🚀
1 parent fc3d6a2 commit 251f25a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/posts/2022-06-06-microfrontend-module-federation-dynamic-configuration.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -368,24 +368,24 @@ declare module 'cancelOrder/CancelOrderWidget' {
368368
369369
// ...CancelOrderPage.tsx
370370
371-
import React, {FC} from "react";
371+
import React, {FC, Suspense} from "react";
372372
import {useParams} from "react-router-dom";
373373
374374
const CancelOrderWidget = React.lazy(() => import("cancelOrder/CancelOrderWidget"));
375375
376376
type UrlParams = {
377-
orderId: string;
377+
orderId: string;
378378
}
379379
380380
export const CancelOrderPage: FC = () => {
381-
const { orderId } = useParams<UrlParams>();
382-
383-
return (
384-
<React.Suspense fallback={<div/>}>
385-
<CancelOrderWidget
386-
orderId={orderId ?? ""}/>
387-
</React.Suspense>
388-
);
381+
const { orderId } = useParams<UrlParams>();
382+
383+
return (
384+
<Suspense fallback={<div/>}>
385+
<CancelOrderWidget
386+
orderId={orderId ?? ""}/>
387+
</Suspense>
388+
);
389389
}
390390
391391
```

0 commit comments

Comments
 (0)