Closed jviide closed 3 months ago
Latest commit: cb6bdabbd31b27f8435c7976089fa276da6bfb7a
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Name | Link |
---|---|
Latest commit | cb6bdabbd31b27f8435c7976089fa276da6bfb7a |
Latest deploy log | https://app.netlify.com/sites/preact-signals-demo/deploys/65f2f9066f41a40008360054 |
Deploy Preview | https://deploy-preview-525--preact-signals-demo.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
This pull request allows setting a
signal
's value inside acomputed
. Previously the following code was not allowed and raised an error with the message "Computed cannot have side-effects":This suggested change is based on Slack discussions (TL;DR: there may be legitimate use-cases that the side-effect limitation blocks / the "regular" cycle detection might be enough for preventing runaway modification loops) and submitted here for further evaluation. /cc @developit @marvinhagemeister
This change saves some bytes from the output bundles: