Skip to content

Commit 5c47b5d

Browse files
committed
component.Base: render() => only prevent call with mount while CSS is loading
1 parent b136d55 commit 5c47b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component/Base.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2316,7 +2316,7 @@ class Component extends Base {
23162316
{useVdomWorker} = Neo.config;
23172317

23182318
// Verify that the critical rendering path => CSS files for the new tree is in place
2319-
if (currentWorker.countLoadingThemeFiles !== 0) {
2319+
if (autoMount && currentWorker.countLoadingThemeFiles !== 0) {
23202320
currentWorker.on('themeFilesLoaded', function() {
23212321
!me.mounted && me.render(mount)
23222322
}, me, {once: true});

0 commit comments

Comments
 (0)