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(react-server): noramlize client reference with ?t= query (hmr timestamp) #316

Merged
merged 8 commits into from
May 15, 2024

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented May 15, 2024

Probably we should consider entirely virtual module centered approach (not only node_modules), but for now, it might be possible to simply adjust our existing noramlizeClientReferenceId to take hmr timestamp into account.


However, ?t=... injection doesn't happen for ssr import analysis (unless we use new module runner injectInvalidationTimestamp mode vitejs/vite#16400), so we actually need to strip that out during ssr importWrapper again.


And good news is that this is going to fix this non-ideal HMR behavior added in:

@hi-ogawa hi-ogawa changed the title fix(react-server): noramlize client reference with hmr timestamp fix(react-server): noramlize client reference with ?t= query (hmr timestamp) May 15, 2024
@hi-ogawa hi-ogawa mentioned this pull request May 15, 2024
69 tasks
@hi-ogawa hi-ogawa marked this pull request as ready for review May 15, 2024 06:33
@hi-ogawa hi-ogawa merged commit 891f125 into main May 15, 2024
4 checks passed
@hi-ogawa hi-ogawa deleted the fix-client-reference-with-hmr-timestamp branch May 15, 2024 07:06
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