You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
Hi @indeyets
As far as I know renderToString (from react-dom/server) calls only componentWillMount, while componentDidMount/Update are called in the client during the hydrate.
Why is componentDidUpdate being called on your server? are you sure?
componentDidUpdate()
callsdispatchEvent
which unconditionally callsdocument.createEvent('Event');
The problem is that
document
global is not available when server-side rendering is used (either in isomorphic scenarios or in tests).Simple
if (typeof document !== 'undefined')
guard should be enough to fix thisThe text was updated successfully, but these errors were encountered: