Skip to content
This repository has been archived by the owner on Feb 23, 2025. It is now read-only.

refactor: render full document html via React #554

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

hi-ogawa
Copy link
Owner

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

just cherry-picked single commit since conflict was too much...


Hmm, error boundary is not looking good since it also re-renders full document on client.

2024-01-05.15-30-41.webm

To fix this, probably we need to put theme system into react world, which I see as unnecessary architectural burden. So, not rendering full document by React definitely has advantage with these little things.


Or this "boundary route" idea might be better than that:

Probably it's possible to inject such "boundary route" via custom route config?


Or just go for React 18.3 with robust html/head/body CSR?

Well, actually this "robust"-ness cannot magically merge <html class=... /> since that would change react props semantics...

@hi-ogawa hi-ogawa marked this pull request as draft January 5, 2024 06:32
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