@pyreon/reactivity 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -38,6 +38,7 @@ batch(() => {
38
38
  ### Effects
39
39
 
40
40
  - **`effect(fn): Effect`** -- Runs `fn` and re-runs it whenever its tracked dependencies change.
41
+ - **`onCleanup(fn)`** -- Registers a cleanup function inside an effect. Runs before re-execution and on disposal.
41
42
  - **`renderEffect(fn): Effect`** -- Like `effect`, but scheduled for render timing.
42
43
  - **`watch(source, callback, options?): WatchOptions`** -- Watches a reactive source and calls back on change.
43
44
  - **`setErrorHandler(handler)`** -- Sets a global error handler for effect errors.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyreon/reactivity",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Signals-based reactivity system for Pyreon",
5
5
  "license": "MIT",
6
6
  "repository": {