Skip to content

Commit

Permalink
fix: this all makes sense now
Browse files Browse the repository at this point in the history
  • Loading branch information
MKRhere committed Nov 12, 2023
1 parent b2982d4 commit 0ff6a57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hyper/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ export class State<T = any> implements ReadonlyState<T> {
}

readonly() {
const it = this;
return {
get value(): T {
return this.value;
return it.value;
},
listen: this.listen.bind(this),
map: this.map.bind(this),
Expand Down

0 comments on commit 0ff6a57

Please sign in to comment.