Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Replace body so fast-refresh function caching works #628

Merged
merged 5 commits into from
Dec 16, 2024

Conversation

Artur-
Copy link
Contributor

@Artur- Artur- commented Dec 15, 2024

Fixes #626

Copy link

changeset-bot bot commented Dec 15, 2024

🦋 Changeset detected

Latest commit: d14db48

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

This PR includes changesets to release 1 package
Name Type
@preact/signals-react-transform 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 Dec 15, 2024

Deploy Preview for preact-signals-demo ready!

Name Link
🔨 Latest commit b113275
🔍 Latest deploy log https://app.netlify.com/sites/preact-signals-demo/deploys/675f07821fac9c000821f33a
😎 Deploy Preview https://deploy-preview-628--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 site configuration.

Copy link

netlify bot commented Dec 15, 2024

Deploy Preview for preact-signals-demo ready!

Name Link
🔨 Latest commit d14db48
🔍 Latest deploy log https://app.netlify.com/sites/preact-signals-demo/deploys/675fe3fc7968340008a9a35e
😎 Deploy Preview https://deploy-preview-628--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 site configuration.

@@ -669,6 +669,7 @@ describe("React Signals Babel Transform", () => {
};
`);

scope.path.scope.crawl();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

According to babel/babel#8358, the scope bindings are not automatically updated when modifying the ast - this seems to update them

@JoviDeCroock JoviDeCroock merged commit c3e8e8c into preactjs:main Dec 16, 2024
6 checks passed
@github-actions github-actions bot mentioned this pull request Dec 16, 2024
Copy link
Member

@andrewiggins andrewiggins left a comment

Choose a reason for hiding this comment

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

Thanks!

@Artur-
Copy link
Contributor Author

Artur- commented Dec 17, 2024

Any chance of getting this into a release?

@JoviDeCroock
Copy link
Member

It's been merged for < 24 hours, we'll get to it when we do... I have to first test the signals preact 2.0 release that is attached to this and then publish. I'll try to get this done today but can't make promises

@JoviDeCroock
Copy link
Member

@Artur- nevermind, I forgot I already tested the Preact stuff out but... just forgot.... 😅 the todo-list has been a bit chaotic, it's all released now, thank you again for the contribution!

@Artur-
Copy link
Contributor Author

Artur- commented Dec 17, 2024

Thank you very much, remember to calm down and take a break for the holidays :)

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.

Including @preact/signals-react-transform breaks rerender on hook change for fast refresh
3 participants