-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent to load script again (#756)
* fix: prevent to load script again * simplify * test: add federation loadScript * fix: remove finished promises * test: add a complex loadScript test * fix: return promise if exist * test: combine prefetchScript with loadScript * fix: should run loadScript if promise is create because of prefetch * chore: changeset * chore: lint * chore: simplify code * Update packages/repack/src/modules/ScriptManager/__tests__/Federated.test.ts Co-authored-by: Jakub Romańczyk <[email protected]> * move tests to scriptManager test * fix: script promise type * fix: spyOn loadScript
- Loading branch information
Showing
3 changed files
with
186 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@callstack/repack': patch | ||
--- | ||
|
||
Prevent to loadScript which is already is loading | ||
issue: https://github.com/callstack/repack/issues/749 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters