-
I wanted to use if (process.env.NODE_ENV !== 'production') {
if (options.queryFn === skipToken) {
console.error('skipToken is not allowed for useSuspenseInfiniteQuery')
}
} Is there a reason for notifying developers via console logs instead of TypeScript type checking? I believe that showing this through browser console logs during development does not provide a good DX(developer experience). How about presenting it as a TypeScript type check error so developers can be aware of it during development? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
yeah should be as easy as |
Beta Was this translation helpful? Give feedback.
yeah should be as easy as
queryFn: Exclude<options['queryFn'], SkipToken>
but not sure. Do you want to give it a try to contribute it?