Fix SSR regression #321
Copy link
Copy link
Closed as not planned
Description
- versions prior to 2.3.0 supported SSR
- we inadvertently lost this functionality in Move LiveProvider to hooks, fixes #220 #226
- see also SSR not working anymore since 2.3.0 #272 (comment)
we need to refactor <LiveProvider /> to avoid relying on useEffect (which does not run on the server because it only runs after each render)
we also have a useState hook that gets initialized with empty values. The refactor should make transpileAsync() callable in both the useEffect hook and the useState initializer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
tujoworker commentedon May 25, 2022
Thanks for reporting. I'll come with an PR.
tujoworker commentedon May 27, 2022
@jpdriver and @rilakumma Are you able to look at the PR?
tujoworker commentedon Aug 5, 2026
Here is a new PR that adds SSR support.