Checkpoint current UI and ink integration state
This commit is contained in:
@@ -20,6 +20,8 @@ export class ModuleRegistry {
|
||||
return;
|
||||
}
|
||||
|
||||
const alreadyRegistered = this.modules[module.id] === module;
|
||||
|
||||
// Store the module
|
||||
this.modules[module.id] = module;
|
||||
|
||||
@@ -39,6 +41,10 @@ export class ModuleRegistry {
|
||||
this.moduleDependencies.set(module.id, []);
|
||||
}
|
||||
|
||||
if (alreadyRegistered && this.readyPromises[module.id]) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Create a promise that will resolve when this module is ready
|
||||
this.readyPromises[module.id] = new Promise((resolve) => {
|
||||
// Set up a state change listener for this module
|
||||
|
||||
Reference in New Issue
Block a user