Commit 01d9d08f authored by yann300's avatar yann300

make sure to wait before continuing

parent 08c93fdc
...@@ -34,6 +34,7 @@ export class RemixAppManager extends PluginManager { ...@@ -34,6 +34,7 @@ export class RemixAppManager extends PluginManager {
async canDeactivatePlugin (from, to) { async canDeactivatePlugin (from, to) {
console.log('canDeactivatePlugin', from, to) console.log('canDeactivatePlugin', from, to)
if (requiredModules.includes(name)) return false
return from.name === 'manager' return from.name === 'manager'
} }
...@@ -84,11 +85,6 @@ export class RemixAppManager extends PluginManager { ...@@ -84,11 +85,6 @@ export class RemixAppManager extends PluginManager {
this.event.emit('ensureDeactivated', apiName) this.event.emit('ensureDeactivated', apiName)
} }
deactivatePlugin (name) {
if (requiredModules.includes(name)) return
super.deactivatePlugin(name)
}
isRequired (name) { isRequired (name) {
return requiredModules.includes(name) return requiredModules.includes(name)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment