question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a bindings to the URQL GraphQL Client.

See original GitHub issue

Jotai is an awesome local state management library, but especially with GraphQL usually, some specialized clients are way more preferable than Redux, Jotai, Recoil etc. although to get GraphQL client’s data into the Jotai sometimes could be very helpful. A common example would be a select options that are getting fetched from the GraphQL backend. Currently, the process is pretty annoying with useEffect and other things to be used in order to sync them together, which are very error-prone and hard to manage on a big scale, being able to wrap certain queries or mutations into atoms to have some calculated data based on it and other goodness, etc. will be simply awesome.

https://github.com/FormidableLabs/urql

If anyone will try to do such wrapper, I guess the best people to review and consult on PRs would be the main maintainers of URQL @kitten and @JoviDeCroock

Thanks! I wish I could contribute a PR, but I’m still in the learning phase of Jotai and URQL too, so not an expert I would like to be to start such work 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:27 (26 by maintainers)

github_iconTop GitHub Comments

2reactions
kittencommented, Jun 25, 2021

@RIP21 I’d say it’s at any given point each of our newer bindings started out at too. We’ll have to see whether all API details hold up and whether it handles all edge cases. I’ll see whether I find some time to port some of our examples to it, which should help

1reaction
RIP21commented, Jun 25, 2021

Wuuuuuut! Thank you very much!

How would rate its completion? Fully done, or good enough to try but rather mixed usage of original bindings + this atom when some calculated atoms based on fetched data is needed?

@kitten what’s your thoughts about this implementation if any?

Unfortunately i don’t have a real code base that is using URQL now to play with it and give feedback, but just curious for future projects.

UPD: Just saw comments on PR. Okay 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Svelte Bindings | urql Documentation
This "Getting Started" guide covers how to install and set up urql and provide a Client for Svelte. The @urql/svelte package, which provides...
Read more >
Fullstack Tutorial with GraphQL, React & urql
In short, you should use a GraphQL client for tasks that are repetitive and agnostic to the app you're building. For example, being...
Read more >
The highly customizable and versatile GraphQL client - urql
urql is a GraphQL client that exposes a set of helpers for several frameworks. It's built to be highly customizable and versatile so...
Read more >
Building a blog with urql, Sveltekit, and Hygraph
URQL now has Svelte Bindings so, let's take a look at getting it ... Before I set up the urql client, I'll need...
Read more >
Uploading files to GraphQL Server with URQL - Esteban Borai
For my project I'm using URQL, a GraphQL client by Formidable Labs which brings bindings for React, Svelte, Vue and Vanilla JS.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found