This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 786
getDataFromTree breaks React Hooks #2541
Comments
1 task
See #2533. |
Fixed in |
Works with [email protected], but breaks with [email protected]. |
Hey guys, I have [email protected] (tried it with next and 2.3.1) with react && reactDom 16.7.alpha.2 and getDataFrom still fails on the server. Is there anything I might have missed? Cheers! |
Having the same issue with React 16.8.4 and @apollo/react-ssr. Looking at this thread facebook/react#14022 (comment) make me anxious. Is there really no solution? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Related Issue
Rendering the app tree during
getDataFromTree(<App />)
appears to break React Hooks, causing an invariant violation to be thrown.Rendering the same app tree using
renderToString(<App />)
works just fine.react-apollo - v2.2.4
apollo-boost - v0.1.17
react - v16.7.0-alpha.0
react-dom - v16.7.0-alpha.0
graphql - v14.0.2
The text was updated successfully, but these errors were encountered: