Skip to content

Is it possible to globally configure a base queryKey? #8579

Answered by arnoud-dv
avegatolber asked this question in Q&A
Discussion options

You must be logged in to vote

Recently the possibility to register global query and mutation types was added, which is a nice solution for this. A type error will then occur if a key doesn't start with one of the allowed prefixes.

TypeScript playground

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@avegatolber
Comment options

@arnoud-dv
Comment options

Answer selected by TkDodo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants