facebook / relay

Relay is a JavaScript framework for building data-driven React applications.
https://relay.dev
MIT License
18.24k stars 1.8k forks source link

Typescript types not marked as also null for connection marked with `@defer` #4701

Open alexus37 opened 2 weeks ago

alexus37 commented 2 weeks ago

When you mark a connection with @defer, the generated TypeScript type isn't marked as nullable. It seems like it should be, considering this data may not be ready when the initial response is sent back.

alexus37 commented 3 days ago

Today I learned that in relay @defer is only supported on inline fragments :/ (In case someone ends up here)