diff --git a/jsr.json b/jsr.json index 885b76d..6283a92 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@purifyjs/core", - "version": "0.0.304", + "version": "0.0.305", "exports": "./lib/all.ts", "publish": { "include": ["lib", "LICENSE", "README.md"] diff --git a/lib/dependency.ts b/lib/dependency.ts index 85154b9..2cf0b33 100644 --- a/lib/dependency.ts +++ b/lib/dependency.ts @@ -45,8 +45,8 @@ export let add = (signal: Signal): void => { * ```ts * // Using track in a computed context to ignore further tracking * computed(() => { - * add(this); // Add the current signal for tracking - * return track(() => getter(this.val)); // Ignore further adds + * add(signal); // Add the current signal for tracking + * return track(() => getter(signal.val)); // Ignore further adds * }); * ``` */