Skip to content

Commit

Permalink
Fix an incorrect string substitution in a warning message. (#11516)
Browse files Browse the repository at this point in the history
Co-authored-by: Alessia Bellisario <github@bellisar.io>
  • Loading branch information
phryneas and alessbell committed Jan 31, 2024
1 parent 4fc6130 commit 8390fea
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
@@ -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
Expand Up @@ -946,7 +946,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 8390fea

Please sign in to comment.