diff --git a/lib/utils/src/objects.ts b/lib/utils/src/objects.ts index 860c564..3acadbe 100644 --- a/lib/utils/src/objects.ts +++ b/lib/utils/src/objects.ts @@ -139,8 +139,14 @@ function lazyPropDesc( return { configurable: true, get(this: T) { - delete this[key] - return (this[key] = loader()) + const value = loader() + + Object.defineProperty(this, key, { + configurable: true, + value, + }) + + return value }, } }