Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
if (!(name in nextComponentInstanceId)) {
nextComponentInstanceId[name] = 0
}
nextComponentInstanceId[name] = nextId++
const componentId = nextComponentId
const componentInstanceId = nextComponentInstanceId[name]
Object.assign(component, {
componentId,
componentInstanceId,
})
getApp().eventHub.emitAsync(EventType.COMPONENT_ADD, {
componentId,
componentInstanceId,
name,
paths: Array.from(tree.pathDependencies) as any,
})
} catch (error) {
console.log(error.message)
}
}
componentDidMount() {
this.overmind.eventHub.emitAsync(EventType.COMPONENT_ADD, {
componentId: populatedComponent.__componentId,
componentInstanceId: this.componentInstanceId,
name,
paths: Array.from(this.tree.pathDependencies) as any,
});
}
componentDidUpdate() {
mounted(this: any) {
if (overmind.mode.mode === MODE_SSR) return
overmind.eventHub.emitAsync(EventType.COMPONENT_ADD, {
componentId,
componentInstanceId: this[OVERMIND].componentInstanceId,
name: this.$options.name || '',
paths: Array.from(this[OVERMIND].tree.pathDependencies) as any,
})
},
updated(this: any) {
;(window['__zone_symbol__setTimeout'] || setTimeout)(() => {
this.overmind.eventHub.emitAsync(EventType.COMPONENT_ADD, {
componentId: this.componentDetails.componentId,
componentInstanceId: this.componentDetails.componentInstanceId,
name: this.componentDetails.name,
paths: Array.from(this.tree.pathDependencies) as any,
})
})
}
componentDidMount() {
this.overmind.eventHub.emitAsync(EventType.COMPONENT_ADD, {
componentId: populatedComponent.__componentId,
componentInstanceId: this.componentInstanceId,
name,
paths: Array.from(this.tree.pathDependencies) as any,
})
}
componentDidUpdate() {