Closed levito closed 5 years ago
Code Climate has analyzed commit 24135e62 and detected 0 issues on this pull request.
View more on Code Climate.
Thanks for the repro. I found the underlying issue.
RouteContext
imports import { render } from '@seagull/pages'
and uses the default export of the SSR-Page-Bundle with the imported render function. Because render
from @seagull/pages
uses react-dom/server
seagull uses a React/ReactDom from both inside the SSR-Page-Bundle and from the backend bundle.
I see two options:
@seagull/pages
render function from the page bundle and use that inside RouteContext (where we load the bundle).
Reproduce #113
Note: The new page test passes, but SSR won't work when visiting http://localhost:8080/hooks in the browser