Skip to content

Commit 4d6585b

Browse files
fix(runtime-core): add useIn while using unloading registered shared (#3925)
Co-authored-by: Zack Jackson <[email protected]>
1 parent cc44d97 commit 4d6585b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/tiny-chicken-protect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/runtime-core': patch
3+
---
4+
5+
fix(runtime-core): add useIn while using unloading registered shared

packages/runtime-core/src/shared/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ export class SharedHandler {
199199
if (gShared) {
200200
gShared.lib = factory;
201201
gShared.loaded = true;
202+
addUseIn(gShared);
202203
}
203204
return factory as () => T;
204205
};

0 commit comments

Comments
 (0)