diff --git a/internal/util/util.go b/internal/util/util.go index 58caf97..8b28935 100644 --- a/internal/util/util.go +++ b/internal/util/util.go @@ -83,6 +83,7 @@ func NewMemo[T any] (update func () T) Memo[T] { func (this *Memo[T]) Value () T { if !this.valid { this.cache = this.update() + this.valid = true } return this.cache }