Questions tagged [urql]

Formidable urlq GraphQL client

The Formidable Javascript GraphQL client

113 questions
0
votes
1 answer

Is there an URQL equivalent of Apollo's ReactNativeFile (from apollo-upload-client)?

I am using URQL as my react native graphql client. I like using the library but there doesn't seem to be an easy way to upload files selected from the expo image picker to my node server. I did some googling, found a Ben Awad video where he uses…
jmecs
  • 143
  • 2
  • 13
0
votes
1 answer

Cannot read property 'executeQuery' of null

Can anybody help me understand why i'm getting this error: My setup : New sveltekit project. ASP.net core backend for graphql. Querying was working before I modified it to include subscriptions. error msg: Cannot read property 'executeQuery' of…
0
votes
1 answer

Load More Pagination using Prisma, Urql & React?

I am following this tutorial → https://blog.logrocket.com/pagination-in-graphql-with-prisma-the-right-way/ In the end, there is a Load More based pagination that looks like: I tried implementing it like: import React from 'react' import { useQuery…
deadcoder0904
  • 7,232
  • 12
  • 66
  • 163
0
votes
1 answer

Sharing fetched data between components in urql

I want to share state fetched from the backend between components, just like I would using redux. Specifically, once a user is logging in, the response he gets includes settings, notifications and recent posts. How do I distribute those across…
Tobi
  • 363
  • 5
  • 15
0
votes
1 answer

How to use urql data in React like redux?

In one of our projects I'm using urql for graphql api calls. In other projects with RESTful api, I'm using redux to handle re-renders after each data changes. I'm new in graphql and urql, for this case I should add redux and dispatch actions with…
Martin Rützy
  • 415
  • 1
  • 11
  • 22
0
votes
1 answer

Urql error: cannot read property of variable name undefined, and I defined it properly

Here is my problem: const GraphComponent = () => { const { GraphQuery } = useContext(GlobalContext); const query = ` query($input: MeasurementQuery ){ getMeasurements(input: $input){ metric, value, unit, at …
Samuel Egwurube
  • 111
  • 1
  • 1
  • 5
0
votes
0 answers

Svelte, only re-render an item in list, not the entire list

Both with svelte-apollo (https://github.com/timhall/svelte-apollo/issues/19) and @urql-svelte (https://github.com/FormidableLabs/urql/issues/704) I'm having an entire list re-render instead of just an element re-render. Reproduction steps: go to…
Fred Hors
  • 3,258
  • 3
  • 25
  • 71
-2
votes
3 answers

While turining on ssr in Urql clint Im geting the below error: Did not expect server HTML to contain a in

webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:67 Warning: Did not expect server HTML to contain a in . at div at Styled(div)…
1 2 3 4 5 6 7
8