facebook / facebook/relay

legacy API – refetch container – refetch query not being compiled

Open
#4,285 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Hi team,

I'm using v14.1.0 of relay, but still working with the legacy API for refetch container.

Currently seeing the problem that the refetch query is not being generated by the relay compiler.

My code currently matches the expectations outlined in https://relay.dev/docs/v10.1.3/refetch-container/ however when running the relay compiler, we are not seeing the generation of the `*RefetchQuery.graphql.js` files.

This. then obviously breaks things :sadpanda:

Attempts to make use of the `@refetchable` directive likewise fails, yielding:

```
✖︎ Invalid use of @refetchable on fragment 'PAGE_property', check that your schema defines a `Node { id: ID }` interface and has a `node(id: ID): Node` field on the query type (the id argument may also be non-null).
```

Running the compiler with `--output debug` also shows that there is no "new artifact" identified by the compiler for the refetch queries.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.