Skip to content

Conversation

jviide
Copy link
Contributor

@jviide jviide commented Sep 15, 2025

This pull request implements alternative 1 for @preact/signals's useComputed as described in #753: Update the compute function on rerender. If the compute function changes, and something is depending on the computed returned by useComputed, then this causes a recompute down the line.

This is a mutually exclusive alternative for #755. At least one of these PRs should be eventually closed without merging.

Copy link

changeset-bot bot commented Sep 15, 2025

🦋 Changeset detected

Latest commit: 12b72df

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@preact/signals Patch
preact-signals-devtools Patch

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

Copy link

netlify bot commented Sep 15, 2025

Deploy Preview for preact-signals-demo ready!

Name Link
🔨 Latest commit 12b72df
🔍 Latest deploy log https://app.netlify.com/projects/preact-signals-demo/deploys/68cc43f1d3146e0008f3f619
😎 Deploy Preview https://deploy-preview-754--preact-signals-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jviide jviide changed the title preact/signals: Recompute useComputed on rerender preact/signals: Update useComputed compute function on rerender Sep 15, 2025
Copy link
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would need a changeset

@jviide
Copy link
Contributor Author

jviide commented Sep 18, 2025

Thanks, added a changeset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants