Skip to content

Commit ce2767b

Browse files
committed
docs: fix typo
1 parent 6444f44 commit ce2767b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/website-new/docs/en/guide/basic/runtime/runtime-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ A `ModuleFederation` instance is an instance of the `ModuleFederation` class, wh
428428
429429
* When to use `ModuleFederation` class?
430430
431-
To ensure the uniqueness of the ModuleFederation instance, after the build plugin creates an instance, it will be stored in memory. The exported APIs all first obtain the ModuleFederation instance from memory and then call the APIs of the ModuleFederation instance. This is also why APIs like loadRemote can be used directly from the `module-federation/runtime` package and inherently understand what application container they are attached to.
431+
To ensure the uniqueness of the ModuleFederation instance, after the build plugin creates an instance, it will be stored in memory. The exported APIs all first obtain the ModuleFederation instance from memory and then call the APIs of the ModuleFederation instance. This is also why APIs like loadRemote can be used directly from the `@module-federation/enhanced/runtime` package and inherently understand what application container they are attached to.
432432
433433
However, this singleton pattern also limits the ability to create multiple instances, as it assumes that there is only one instance per bundle. Therefore, if you need to create a new instance , you can use the ModuleFederation class to create a new one.
434434

apps/website-new/docs/zh/guide/basic/runtime/runtime-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,5 +445,5 @@ const mf = new ModuleFederation({
445445
]
446446
});
447447

448-
host.loadRemote('@demo/sub1/util').then((m) => m.add(1, 2, 3));
448+
mf.loadRemote('@demo/sub1/util').then((m) => m.add(1, 2, 3));
449449
```

0 commit comments

Comments
 (0)