diff --git a/src/index.ts b/src/index.ts index 4b0433c..1bab3f8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -167,10 +167,13 @@ export class EnhancedElement< public connect>(store: Sx): this { this.store = store as unknown as S; this.unsubscribe = store.subscribe(this.onStateUpdate.bind(this)); + this.onAfterConnect(); return this; } + protected onAfterConnect() {} + public getElement(): ET { return this.element; }