-
Hey guys, So I have several levels in my code base that uses react-query to call upon Server APIs, some of them using Now I am trying to find a way where I could centrally manage my query Ideally I would be looking at something similar than the DefaultQueryFn feature but for query options. Any ways you guys can think of to make this happen with today's version? Phil |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think what you are looking for is queryClient.setQueryDefaults where you can set a default value of any option for all queries that match a certain key. |
Beta Was this translation helpful? Give feedback.
I think what you are looking for is queryClient.setQueryDefaults where you can set a default value of any option for all queries that match a certain key.