requestPolicyExchange type error #3466
-
Beta Was this translation helpful? Give feedback.
Answered by
JoviDeCroock
Dec 18, 2023
Replies: 1 comment 1 reply
-
This is most often cause by duplication in your dependencies, Just saying but in |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gonta1026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is most often cause by duplication in your dependencies,
npx yarn-deduplicate
ornpm 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