jaydenseric / graphql-react

A GraphQL client for React using modern context and hooks APIs that is lightweight (< 4 kB) but powerful; the first Relay and Apollo alternative with server side rendering.
https://npm.im/graphql-react
MIT License
718 stars 22 forks source link

Support legacy React context API #7

Closed jaydenseric closed 6 years ago

jaydenseric commented 6 years ago

The preload function currently does not support the legacy React context API, which is used by libraries such as styled-components (see here and https://github.com/styled-components/styled-components/issues/1459).

React will support both the old and new context APIs for some time, so we should too.