Closed basicdays closed 8 years ago
Oh my god. I found the issue. I was passing in the Component to be wrapped as a React Element instead of as a Component (i.e. passing it in as
Hello @basicdays. Sorry for not having been able to help you sooner. Glad to hear you found the solution :).
Hey all,
Currently getting the following error when trying to perform server side rendering:
When I do not use a higher order root, I no longer get an error like this. Of course this means any of my components that use branching will fail. Using the wrapper root also produces a similar error.
I've recreated the error in this repo: https://github.com/basicdays/baobab-server-rendering
The relevant file is here: https://github.com/basicdays/baobab-server-rendering/blob/master/src/routes/index.js