We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8655c5 commit 07f44ecCopy full SHA for 07f44ec
dash/dash-renderer/src/libraries/librariesContext.ts
@@ -95,6 +95,9 @@ export function createLibrariesContext(
95
if (loaded.length) {
96
dispatch(setLibraryLoaded({libraries: loaded}));
97
}
98
+ if (loaded.length === initialLibraries.length) {
99
+ onReady();
100
+ }
101
});
102
}, [initialLibraries]);
103
@@ -105,9 +108,6 @@ export function createLibrariesContext(
105
108
106
109
const libraries = getLibrariesToLoad();
107
110
if (!libraries.length) {
- if (!ready && initialLibraries) {
- onReady();
- }
111
return;
112
113
if (callback > 0) {
0 commit comments