Hook 'useQueryLoader' example returns a nullable queryReference which doesn't seem to make sense
Open
- Dominant language
- Rust
- Stars
- 19k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
The example on https://relay.dev/docs/api-reference/use-query-loader/ shows the usage of 'useQueryLoader' with a non nullable initialQueryRef being passed in. If this is passed straight back out then surely the queryRef returned by 'useQueryLoader' cannot be null either and thus the null checks are click to reveal button are not warranted. Am I missing something?
Follow on, if I am correct in this case then perhaps the nullability for the return type should change when initialQueryRef is passed in?
Contributor guide
Assessment
This issue has not been assessed yet.