diff --git a/src/core.ts b/src/core.ts index 5217f4e..acf8d42 100644 --- a/src/core.ts +++ b/src/core.ts @@ -373,8 +373,8 @@ const ComputeNode = function Computation( this._observers = null; this._value = initialValue; - if (__DEV__) this.id = options?.id ?? (this._compute ? 'computed' : 'signal'); if (compute) this._compute = compute; + if (__DEV__) this.id = options?.id ?? (this._compute ? 'computed' : 'signal'); if (options && options.dirty) this._changed = options.dirty; };