Skip to content

Commit

Permalink
Fixes #3368
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jul 19, 2024
1 parent 9f957ab commit 4f25222
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Plugins/RenderPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,12 @@ class RenderManager {
if (this._hasConfigInitialized) {
return this._hasConfigInitialized;
}

if (this.templateConfig.hasInitialized()) {
return true;
}
this._hasConfigInitialized = this.templateConfig.init();
await this._hasConfigInitialized;

return true;
}

Expand Down
4 changes: 4 additions & 0 deletions src/TemplateConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ class TemplateConfig {
// nothing yet
}

hasInitialized() {
return this.hasConfigMerged;
}

/**
* Async-friendly init method
*/
Expand Down

0 comments on commit 4f25222

Please sign in to comment.