Closed
Description
Using @Html.React("Component", ..., serverOnly: true)
still adds the ReactDOM.render()
calls to the @Html.ReactInitJavaScript()
output which breaks pages using server only components. (It also wraps the output in an unnecessary container element)
Looking through the code there seems to be missing a bool in the ReactEnvironment CreateComponent
method that sets the component to be server only and thus skipped when outputting the init code for all components
Metadata
Metadata
Assignees
Labels
No labels