Skip to content

Commit

Permalink
chore(core): improve heart
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Aug 5, 2021
1 parent 576c9b5 commit de97e76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"octokit",
"repos",
"alibaba",
"Lifecycles",
"antd",
"Antd",
"alifd",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/models/Heart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Heart<Payload = any, Context = any> extends Subscribable {
addLifeCycles = (id: any, lifecycles: LifeCycle[] = []) => {
const observers = this.buildLifeCycles(lifecycles)
if (observers.length) {
this.outerLifecycles.set(id, this.buildLifeCycles(lifecycles))
this.outerLifecycles.set(id, observers)
}
}

Expand Down

0 comments on commit de97e76

Please sign in to comment.