diff --git a/hyper/state.ts b/hyper/state.ts index 9f8308f..0e96bf9 100644 --- a/hyper/state.ts +++ b/hyper/state.ts @@ -81,9 +81,10 @@ export class State implements ReadonlyState { } readonly() { + const it = this; return { get value(): T { - return this.value; + return it.value; }, listen: this.listen.bind(this), map: this.map.bind(this),