From 0ff6a573c83569df7a41851d1a3aa01b23c0fe0b Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Sun, 12 Nov 2023 23:55:50 +0530 Subject: [PATCH] fix: this all makes sense now --- hyper/state.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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),