found-relay icon indicating copy to clipboard operation
found-relay copied to clipboard

Document which versions of Relay this library works with?

Open gajus opened this issue 5 years ago • 4 comments

e.g, Does it work with Relay hooks API?

gajus avatar Sep 21 '20 21:09 gajus

Should work with any version of relay, this is just tools for implementing the backend bits relay requires which don't change much

jquense avatar Sep 21 '20 23:09 jquense

@jquense what @gajus is referring to is react-relay/hooks (the experimental, suspense-based API) and not relay-tools/relay-hooks. I am going to venture a guess that found-relay is not compatible with React concurrent mode (definitely willing to be wrong on this one) since I cannot find any indications of suspension in this repo.

Do you know any information about if react-relay/hooks and found-relay can work together side-by-side? Or, am I thinking about this completely wrong? Appreciate your time.

Boeing787 avatar Sep 22 '20 01:09 Boeing787

Oop sorry, got my repos mixed up. Found relay is compatible with the experimental relay and concurrent mode, but doesn't use suspense internally. Hopefully when it's a bit more stable all around we can simplify a lot of the code here

jquense avatar Sep 22 '20 02:09 jquense

@jquense That is super great news. We will have a go at this and report back. Gajus and I appreciate your support today! 🙏

Boeing787 avatar Sep 22 '20 02:09 Boeing787