relay-tools / relay-hooks

Use Relay as React hooks
https://relay-tools.github.io/relay-hooks/docs/relay-hooks.html
MIT License
542 stars 56 forks source link

Type errors when using Relay 13 #199

Closed kesne closed 2 years ago

kesne commented 2 years ago

Relay 13 was released, and it looks like the types for useFragment broke due to the generated code changing from $fragmentRefs to $fragmentSpreads.

morrys commented 2 years ago

Hi @kesne, thanks for the tip.

in these days, after recovering from the holidays, I will create the compatibility branch to relay v13 👍

morrys commented 2 years ago

Hi @kesne, PR for v13 relay support is in draft https://github.com/relay-tools/relay-hooks/pull/201. The modification to the sources seems trivial while adapting the tests to use the new compiler in rust still requires some work.

morrys commented 2 years ago

fixed with version 7.0.0