-
Notifications
You must be signed in to change notification settings - Fork 13
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
Server-side rendering with react #698
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #698 +/- ##
==========================================
- Coverage 92.72% 92.65% -0.07%
==========================================
Files 69 69
Lines 1992 2002 +10
Branches 367 368 +1
==========================================
+ Hits 1847 1855 +8
- Misses 77 78 +1
- Partials 68 69 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
af224f7
to
b104af0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments
(directive: Directive): {ref: RefCallback<HTMLElement>}; | ||
<T>(directive: Directive<T>, args: T): {ref: RefCallback<HTMLElement>}; | ||
} = BROWSER | ||
? <T>(directive: Directive<T>, args?: T): {ref: RefCallback<HTMLElement>; suppressHydrationWarning: true} => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather keep the hydration warning than suppress it to be fair...
We can merge with that warning, but please create a GitHub issue to track this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have opened #715 to track this.
@quentinderoubaix I have made the changes you requested. I am not at all satisfied with the reduced validation this implies (i.e. not running react SSR test in dev mode), but if it is ok for you, we can merge it like this and improve things later. I have added a comment in #315 about this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
@quentinderoubaix Thank you! |
This PR is built on top of #697
It adds support for server-side rendering with react.