Skip to content

Commit

Permalink
Fix an incorrect string substitution in a warning message.
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Jan 24, 2024
1 parent 491ec41 commit f6b0669
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/mighty-seals-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/client": patch
---

Fix an incorrect string substitution in a warning message.
2 changes: 1 addition & 1 deletion src/core/QueryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ export class QueryManager<TStore> {
invariant.warn(
typeof nameOrDoc === "string" ?
`Unknown query named "%s" requested in refetchQueries options.include array`
: `Unknown query %s requested in refetchQueries options.include array`,
: `Unknown query %o requested in refetchQueries options.include array`,
nameOrDoc
);
}
Expand Down

0 comments on commit f6b0669

Please sign in to comment.