apollographql / apollographql/apollo-tooling
codegen will run inside an infinite loop when watching the file it outputs
Open
:1st_place_medal: good-first-issue
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 460
- PR merge metrics
- No merged PRs in 30d
Description
If you run the codegen and include the output file in the queries, then watch will run an infinite loop. Maybe we could ignore the output file in the files we watch?
Contributor guide
Research direction
Run codegen in watch mode with the generated output included in the queries to reproduce the repeated triggering. Locate the watch and file-filtering entry points, then verify that changes to the generated output no longer restart watch indefinitely; done means normal source changes still trigger codegen.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100