Create a bindings to the URQL GraphQL Client.
See original GitHub issueJotai 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:
- Created 2 years ago
- Comments:27 (26 by maintainers)
@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
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 😃