Skip to content

Commit

Permalink
Added push init
Browse files Browse the repository at this point in the history
ackava committed Sep 5, 2024
1 parent 6ad1463 commit d07f785
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/AtomComponent.ts
Original file line number Diff line number Diff line change
@@ -633,6 +633,12 @@ export abstract class AtomComponent implements
return result;
}

protected pushInit() {
this.runAfterInit(() => {
(this as any).init?.()?.catch((error) => CancelToken.isCancelled(error) ? void 0 : console.error(error));
})
}

protected abstract createNode(app, e, iterator, creator);

protected abstract toTemplate(app, iterator, creator);

0 comments on commit d07f785

Please sign in to comment.