Skip to content

requestPolicyExchange type error #3466

Answered by JoviDeCroock
gonta1026 asked this question in Q&A
Discussion options

You must be logged in to vote

This is most often cause by duplication in your dependencies, npx yarn-deduplicate or npm dedupe fix these.

Just saying but in urql synchronous exchanges come before asynchronous ones, in your current chain of exchanges your requestPolicyExchange does nothing while [devtoolsExchange, requestPolicyExchange({ shouldUpgrade: () => true }), cacheExchange, fetchExchange] would fix that

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gonta1026
Comment options

Answer selected by gonta1026
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