-
type Response<R> = {
response: R;
ok: boolean;
};
const queryClient = new QueryClient({
defaultOptions: {
queries: {
retry: 2,
select: data => {
if (data.ok) {
return data.response;
}
throw new Error(data.response?.message || 'Fetch ERROR');
}
}
}
}); I want to pass now I got a ts error in |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Mar 5, 2021
Replies: 1 comment 2 replies
-
Can you show what you want to do including the error in a codesandbox? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jkang0408
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you show what you want to do including the error in a codesandbox?