Skip to content

Conversation

markdalgleish
Copy link
Member

@markdalgleish markdalgleish commented Aug 28, 2025

We need to force revalidation during HMR when modifying CSS Modules that are only used on the server since it results in updated classnames. HMR updates the styles for the CSS that's present in the client graph but we need fresh elements from the server so it matches the classnames on the elements.

Copy link

changeset-bot bot commented Aug 28, 2025

⚠️ No Changeset found

Latest commit: 8ec6a32

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@markdalgleish markdalgleish merged commit eeb8fe0 into dev Aug 28, 2025
16 checks passed
@markdalgleish markdalgleish deleted the markdalgleish/fix-server-component-css-modules-hmr branch August 28, 2025 06:19
Copy link
Contributor

github-actions bot commented Sep 9, 2025

🤖 Hello there,

We just published version 7.9.0-pre.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Copy link
Contributor

🤖 Hello there,

We just published version 7.9.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant