Releases: preactjs/signals
@preact/[email protected]
Patch Changes
-
#701
01f406c
Thanks @calebeby! - Narrow types for Show utility, the callback is truthy by design -
Updated dependencies [
4045d2d
]:- @preact/[email protected]
@preact/[email protected]
Patch Changes
-
#711
4b96199
Thanks @calebeby! - Narrow types for Show utility, the callback is truthy by design -
Updated dependencies [
4045d2d
]:- @preact/[email protected]
@preact/[email protected]
Minor Changes
-
#706
4045d2d
Thanks @marvinhagemeister! - feat: support disposingeffect()
with resource managementThis allows
effect()
's to be disposed with the newusing
keyword from the explicit resource management proposal.Whenever an effect goes out of scope the
Symbol.dispose
function is called automatically.const count = signal(0); function doSomething() { // The `using` keyword calls dispose at the end of // this function scope using _ = effect(() => { console.log(count.value); return () => console.log("disposed"); }); console.log("hey"); } doSomething(); // Logs: // 0 // hey // disposed
@preact/[email protected]
Minor Changes
- #697
5e7a167
Thanks @JoviDeCroock! - Publicly exposedispose()
on an effect callback
@preact/[email protected]
Patch Changes
-
#691
960b09d
Thanks @robin-drexler! - AddsdetectTransformedJSX
option which will trigger transformation when alternative methods (likeReact.createElement
) are used to create elements -
#693
b19ddec
Thanks @robin-drexler! - Destructured access to signal values should be registered as usage, before this change Babel would skip a component that would access.value
on a signal through destructuring
@preact/[email protected]
Minor Changes
- #634
62bed44
Thanks @JoviDeCroock! - Add an option to specify a watched/unwatched callback to a signal
Patch Changes
- Updated dependencies [
587e702
,62bed44
]:- @preact/[email protected]
@preact/[email protected]
Minor Changes
- #634
62bed44
Thanks @JoviDeCroock! - Add an option to specify a watched/unwatched callback to a signal
Patch Changes
- Updated dependencies [
587e702
,62bed44
]:- @preact/[email protected]
@preact/[email protected]
Minor Changes
- #634
62bed44
Thanks @JoviDeCroock! - Add an option to specify a watched/unwatched callback to a signal
Patch Changes
- #688
587e702
Thanks @JoviDeCroock! - Loosen up types forwatched
andunwatched
@preact/[email protected]
Patch Changes
- #684
a34eab2
Thanks @JoviDeCroock! - Ensure we build the thing
@preact/[email protected]
Minor Changes
- #683
4b585a5
Thanks @JoviDeCroock! - Provide@preact/signals/utils
package with some helpers to make working with signals easier in Preact