npm run dev will not automatically update NewsfeedQuery.graphql.ts
- Dominant language
- Rust
- Stars
- 19k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
## Docs
https://relay.dev/docs/tutorial/queries-1/ says:
> The Relay compiler generates TypeScript types corresponding to every piece of GraphQL that you have in your app within a graphql`` literal. As long as npm run dev is running, the Relay compiler will automatically regenerate these files whenever you save one of your JavaScript source files, so you don’t need to refresh anything to keep them up to date.
However, I dont' see it happening. I modify `Newsfeed.tsx` to add or remove a field in the
```
graphql``
```
part , and the file
`newsfeed/src/components/__generated__/NewsfeedQuery.graphql.ts`
isn't changed. I have to go to the shell and run `npm run relay`
Perhaps it can be made to automatically create the generated file my modifying a config file for `npm run dev`?
Contributor guide
Assessment
This issue has not been assessed yet.