Skip to content

Commit

Permalink
Update packages/sandbox/src/patchers/dynamicAppend/common.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kuitos authored Dec 25, 2023
1 parent a7994f8 commit 9b3e7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sandbox/src/patchers/dynamicAppend/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export function getOverwrittenAppendChildOrInsertBefore(

/*
The target container of script element might be removed from current document.
For example, the main application clears the DOM first in the route switching, and then trigger unmount,
For example, the main application clears the DOM first during route switching, and then trigger unmount,
at this time, the micro app may still be processing the logic of the route switching, and try to add nodes to the detached container,
in this scenario, we have to append the script to global document head to trigger script evaluation
*/
Expand Down

0 comments on commit 9b3e7c1

Please sign in to comment.