Closed jviide closed 8 months ago
Latest commit: 9444f7955a44950781a4d0853680dba29d450989
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Name | Link |
---|---|
Latest commit | 9444f7955a44950781a4d0853680dba29d450989 |
Latest deploy log | https://app.netlify.com/sites/preact-signals-demo/deploys/65f279bf1d9b1c00081b48f8 |
Deploy Preview | https://deploy-preview-527--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 is a continuation for #523, where the
Signal.prototype.subscribe
method was implemented using theuntracked()
function, saving some bytes.Inlining the
untracked()
call saves bytes for most output formats and solves the tree-shaking downside mentioned in #523.A new test case is included for checking that the subscription callback will run when the signal's original value changes after the subscription has been created.