Skip to content

Commit

Permalink
Update reactivity.imba
Browse files Browse the repository at this point in the history
  • Loading branch information
somebee committed Apr 29, 2024
1 parent 4632723 commit af35f4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/imba/src/imba/reactivity.imba
Expand Up @@ -608,7 +608,7 @@ class Memo
TRACKING--
return res

class ComputedType
export class ComputedType
def constructor name,func
self.name = name
const bkey = REFSYM(name)
Expand All @@ -623,6 +623,7 @@ class ComputedType

const lazy = self.lazyDescriptor = {
enumerable: no
configurable: yes
get: do
let wrapper = this[bkey] = new Memo(this,func,vkey,type)
Object.defineProperty(this,name,descriptor)
Expand Down

0 comments on commit af35f4e

Please sign in to comment.