Ad

React Relay & React Hooks

- 1 answer

Doest Relay already support React hooks? On this video published by Facebook I've noticed a useFragment hook, but couldn't find it anywhere else, nothing in docs or source code.

https://developers.facebook.com/videos/2019/building-the-new-facebookcom-with-react-graphql-and-relay/

Ad

Answer

I'm from the Relay team; we're currently experimenting with Hooks APIs for Relay internally to make sure they work well before we release them, so they are not available in open source yet.

We'll keep the community posted when we release them in open source.

Thanks!

Ad
source: stackoverflow.com
Ad