Skip to content

Commit

Permalink
Add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Sep 19, 2022
1 parent 0f44dc1 commit 79ff1e7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .changeset/tidy-buses-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@preact/signals-core": minor
"@preact/signals": minor
"@preact/signals-react": minor
---

Add ability to run custom cleanup logic when an effect is disposed.

```js
effect(() => {
console.log("This runs whenever a dependency changes");
return () => {
console.log("This runs when the effect is disposed");
});
});
```

0 comments on commit 79ff1e7

Please sign in to comment.