Skip to content

Commit

Permalink
Merge pull request #1369 from alibaba/refactor-hooks
Browse files Browse the repository at this point in the history
refactor: compress _hooks
  • Loading branch information
yuanyan authored Sep 17, 2019
2 parents 1e15cea + 2640e4a commit 4fccb60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rax/src/vdom/reactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class ReactiveComponent extends Component {
this._hookID = 0;
// Number of rerenders
this.__reRenders = 0;
this._hooks = {};
this.__hooks = {};
// Handles store
this.didMount = [];
this.didUpdate = [];
Expand Down Expand Up @@ -55,7 +55,7 @@ export default class ReactiveComponent extends Component {
}

getHooks() {
return this._hooks;
return this.__hooks;
}

getHookID() {
Expand Down

0 comments on commit 4fccb60

Please sign in to comment.