Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

experiment with ssr hmr #1

Closed
wants to merge 9 commits into from
Closed

experiment with ssr hmr #1

wants to merge 9 commits into from

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented Jan 22, 2024

todo

notes

Still hydration error when

  • edit AppDep.tsx
  • edit App.tsx
  • edit AppDep.tsx
  • reload

Maybe App.tsx is importing something different from AppDep.tsx's registry.activeExports at some point.


To fix this, we either need to:

  • replace all the exports of the entire hot update history
  • or wrap/proxy each export so that "reader" side can always reference the latest module
    • probably more logic is required for transform/runtime for proxy system. also it might pollute stacktrace when original function is throwing?

@hi-ogawa
Copy link
Owner Author

@hi-ogawa hi-ogawa closed this Feb 15, 2024
@hi-ogawa hi-ogawa deleted the feat-react-ssr-hmr branch February 15, 2024 05:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant