Skip to content

Commit b798a4c

Browse files
authored
Merge pull request #8345 from QwikDev/fix-qrl-class-create-qrl-preload
2 parents b6b2968 + 1d1bf28 commit b798a4c

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

packages/qwik/src/core/shared/qrl/qrl-class.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,9 @@ export const createQRL = <TYPE>(
314314
);
315315
}
316316

317-
if (isBrowser && symbol) {
318-
/**
319-
* Preloading the symbol instead of the chunk allows us to get probabilities for the bundle
320-
* based on its contents.
321-
*/
322-
preload(symbol, 0.8);
317+
if (isBrowser && chunk) {
318+
/** Preloading the chunk when we create the QRL. */
319+
preload(chunk, 0.8);
323320
}
324321
return qrl;
325322
};

0 commit comments

Comments
 (0)