Skip to content

Conversation

hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Aug 4, 2025

Description

It looks like shared module hmr is almost working perfectly except it cannot guarantee server hmr and client hmr re-renders at the same time atomically, so the example like src/routes/hmr-shared/atomic breaks (simplified version of #666).

Next.js also has same behavior https://github.com/hi-ogawa/reproductions/tree/main/next-rsc-hmr-shared-module, so this may be considered as a rather edge case.

hi-ogawa and others added 6 commits August 4, 2025 14:59
Add comprehensive test for shared module HMR behavior:
- Component HMR updates (shared1.tsx)
- Non-component HMR updates (shared2.tsx)
- Atomic consistency test (atomic/shared.tsx)
- Add data-testid attributes for reliable element selection

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@hi-ogawa hi-ogawa marked this pull request as ready for review August 4, 2025 06:42
@hi-ogawa hi-ogawa merged commit 775ac61 into main Aug 4, 2025
22 checks passed
@hi-ogawa hi-ogawa deleted the 08-04-test_rsc_test_shared_module_hmr branch August 4, 2025 07:20
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.

1 participant