Closed cramhead closed 7 years ago
The React template doesn't support server-side prerendering. The ReactRedux template does support it.
This is because with React alone (not Redux), you would have to invent your own system of transferring server-side state to the client so the client-side app could continue execution. But it doesn't make sense to invent your own system of doing that, as Redux/Flux/etc are designed for exact that use case and are the standard solutions.
So, change your repro steps to use dotnet new reactredux
and things will be better :)
Thanks Steve. I guess I should have thought on it a bit, and it should have been clear. I'm want to try MobX and mobx-state-tree instead of Redux.
@cramhead can you share your mobx template if it is ready?
I would have loved to, but alas I move onto something else entirely. I was planning to circle back on this when I find some time.
Title
Disabling client side javascript results in EPIPE broken pipe error
Functional Impact
After disabling the JavaScript in the browser and refreshing the div with the Loading... text is displayed instead of the Home component with NavMenu.
Minimal repro steps
dotnet new react
to create a new react applicationdotnet restore
to restore nuget packagesnpm install
to install JavaScript dependenciesdotnet run
to start the application.Expected result
After refresh the NavMenu and Home component should display when the route is localhost:5000
Actual result
The loading div shows
Further technical details
dotnet --version 1.0.0-rc4-004771
OS: macOS Sierra Version 10.12.3