Skip to content

Commit 0ff6a57

Browse files
committed
fix: this all makes sense now
1 parent b2982d4 commit 0ff6a57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hyper/state.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ export class State<T = any> implements ReadonlyState<T> {
8181
}
8282

8383
readonly() {
84+
const it = this;
8485
return {
8586
get value(): T {
86-
return this.value;
87+
return it.value;
8788
},
8889
listen: this.listen.bind(this),
8990
map: this.map.bind(this),

0 commit comments

Comments
 (0)