Skip to content

refactor(hmr): root component should be hmr friendly#2033

Merged
Timeless0911 merged 2 commits intomainfrom
syt/refactor/react-client-hmr
Apr 1, 2025
Merged

refactor(hmr): root component should be hmr friendly#2033
Timeless0911 merged 2 commits intomainfrom
syt/refactor/react-client-hmr

Conversation

@SoonIter
Copy link
Copy Markdown
Member

@SoonIter SoonIter commented Apr 1, 2025

Summary

https://github.com/facebook/react/tree/main/packages/react-refresh

https://biomejs.dev/linter/rules/use-component-export-only-modules/

This is the prerequisite task for implementing the virtual module hmr, which allows the client here to be a React component that conforms to the react-refresh specification.

Or it won't trigger react-refresh

Related Issue

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@SoonIter SoonIter changed the title refactor: root component should be hmr friendly refactor(hmr): root component should be hmr friendly Apr 1, 2025
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 1, 2025

Deploy Preview for aquamarine-blini-95325f ready!

Name Link
🔨 Latest commit bf52c4d
🔍 Latest deploy log https://app.netlify.com/sites/aquamarine-blini-95325f/deploys/67ebb9f818ead40008a4e41d
😎 Deploy Preview https://deploy-preview-2033--aquamarine-blini-95325f.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 96 (🟢 up 18 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (🟢 up 9 from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 1, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit bf52c4d
🔍 Latest deploy log https://app.netlify.com/sites/rspress-v2/deploys/67ebb9f87330090008a56b21
😎 Deploy Preview https://deploy-preview-2033--rspress-v2.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.

@SoonIter SoonIter requested a review from Timeless0911 April 1, 2025 10:09
@Timeless0911 Timeless0911 merged commit f3e6544 into main Apr 1, 2025
12 checks passed
@Timeless0911 Timeless0911 deleted the syt/refactor/react-client-hmr branch April 1, 2025 11:02
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.

2 participants