Skip to content

Commit b8655c5

Browse files
committed
Fix initial libraries loading.
1 parent 885f887 commit b8655c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dash/dash-renderer/src/libraries/librariesContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function createLibrariesContext(
105105
}
106106
const libraries = getLibrariesToLoad();
107107
if (!libraries.length) {
108-
if (!ready && initialLibraries.length === 0) {
108+
if (!ready && initialLibraries) {
109109
onReady();
110110
}
111111
return;
@@ -115,7 +115,7 @@ export function createLibrariesContext(
115115
}
116116
const timeout = window.setTimeout(fetchLibraries, 0);
117117
setCallback(timeout);
118-
}, [state, ready]);
118+
}, [state, ready, initialLibraries]);
119119

120120
return {
121121
state,

0 commit comments

Comments
 (0)