I'm trying with the following code to execute urql useQuery only at once. But for some reason it is getting called on every re-render.
As per the docs https://formidable.com/open-source/urql/docs/basics/queries/#pausing-usequery
this query should be…
I am trying to create a mutation but I keep getting a POST body is missing. I can log the data before urql and codegen hooks are called and I can see the data in the variables on the error, but chrome keeps imploding with a "POST body missing" error…
I'm trying to use @urql/vue to perform graphql queries outside of vue3 setup(), using vuex for example. On vue2 I used the apollo-client this way and it worked normally.
This is to be able to carry out the reuse of queries with greater ease. But an…
I'm trying the amazing works done by https://github.com/FormidableLabs/urql/tree/master/packages/svelte-urql guys.
Everything works good until today issue.
I'm using the below code and it gives me this error:
Error: Function called outside component…
My situation has 4 components nested within each other in this order: Products (page), ProductList, ProductListItem, and CrossSellForm.
Products executes a graphql query (using urql) as such:
const productsQuery = `
query {
products {
…
I'm working on a fullstack project that has a GraphQL backend and uses JWT for authentication. My access and refresh tokens are stored in the localStorage in the frontend.
When a user logs out, I just clear the tokens from localStorage and I further…
I am building my web application's frontend using NextJs. My client is running at http://localhost:3000/ and my graphql server is at http://localhost:5000/graphql. So I was creating Urql client and I want server side rendering. In my index.tsx I…
I'm currently working through a urql+react tutorial found here while also adding graphQL API calls to my own application.
In the tutorial the following code is provided to send a query to the server and render components based on the result
const…
I have a spec-compliant ECMAScript Observable, specifically from the wonka library. I am trying to convert this type of observable to an rxjs 6 observable with no luck.
It seems this may have been possible with rxjs 5. I have tried this:
import {…
I keep getting this error when using the Next-Urql and React-Pixi. I understand that this is because React-Pixi requires WEB APIs.
Server Error
ReferenceError: self is not defined This error happened while
generating the page. Any console logs will…
I am using urql GraphQL client in my project. After I log in, it's not adding a token in the authorization header automatically, as it should. I have to refresh the page once and then the token is set in the header. I have been through the…
The Github GraphQL v4 API has so-called Schema Previews where you can use new schema features - but it requires a custom Accept header.
I've used the Apollo client before but I'd like to try this new app with Formidables urlq. Is there a way to set…
So I have an app with React, GraphQL and urql. I have a query that returns data (called readMeanings), and I have pagination (with a "Load more" button).
The problem is this: because of my pagination, when I reverse the sorting (from DESC to ASC),…
My Next.js app worked fine yesterday but today it has an error like this:
error - ./node_modules/@urql/core/dist/ddbb86ae.mjs:1:0
Module not found: Can't resolve 'graphql'
Import trace for requested…
So I'm trying to send an image to our server with react native using GraphQL query and I don't know why but it always return an error : [CombinedError: [Network] Network request failed].
The query :
import { graphql } from '../../gql';
import { gql,…