Replies: 6 comments 2 replies
-
Not a bug, so I'll convert this into a discussion shortly ✌️ You now have to explicitly pass an array of exchanges: #3114 (comment) |
Beta Was this translation helpful? Give feedback.
-
This... looks like a bug after all? |
Beta Was this translation helpful? Give feedback.
-
I just updated this project from v3.0.4 to v4.0.0. The project is using Seems like an error to me. |
Beta Was this translation helpful? Give feedback.
-
Oh, I now found #3114. That is not an obvious place to find changes that need to be mande when updating. I propose adding this or a link to it to the release: https://github.com/urql-graphql/urql/releases/tag/urql%404.0.0. Adding the exchanges works, so no error. Thanks for this great tool. Edit: I found the information here: https://github.com/urql-graphql/urql/releases/tag/%40urql%2Fcore%404.0.0 |
Beta Was this translation helpful? Give feedback.
-
Hello, can anyone tell how to avoid the this (temporary fix, etc), coz I'm also experiencing it using along with:
UPDATE:
if (data && data.locals.urqlOptions) {
const client = new Client({
...data.locals.urqlOptions,
exchanges: [cacheExchange, fetchExchange],
});
setContextClient(client);
} It's working now. |
Beta Was this translation helpful? Give feedback.
-
Docs for using @urql/vue as a vue plugin are not updated, that's what's missing. Here is how it is supposed to work: import urql, { cacheExchange, fetchExchange } from '@urql/vue';
const app = createApp(App)
.use(urql, {
url: import.meta.env.VITE_API_URL, // your API url
exchanges: [cacheExchange, fetchExchange],
}); |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Using
@urql/vue
, upgraded to v1.1.0 (dependency update only, no code changes) now gets the aforementioned error.On this line
in
urql-core.mjs
line: 489I have a feeling @urql/vue v1x does not support the latest @urql/core v4x
Reproduction
https://codesandbox.io/p/sandbox/urql-vue-issue-rlrphn?file=%2Fsrc%2Fmain.js
Urql version
Found "@urql/core@4.0.4"
Validations
Beta Was this translation helpful? Give feedback.
All reactions