leveluptuts / gQuery

Not like jQuery. A GraphQL Fetcher & Cache for Svelte Kit
170 stars 20 forks source link

A few questions coming from urql #23

Open frederikhors opened 2 years ago

frederikhors commented 2 years ago

I'm relly excited for this new project.

I'm using https://github.com/FormidableLabs/urql currently and the svelte integration is still not perfect (they are React developers).

I'm wondering what I can miss switching to this library: I'll try in the next days.

First, two questions:

  1. Can we have a normalized cache (like https://formidable.com/open-source/urql/docs/graphcache/)? I think is not strictly needed for normal apps (they have also the https://formidable.com/open-source/urql/docs/basics/document-caching/ simple cache in fact).

  2. Can we persist cache in browser (localstorage or indexeddb)? I think the normalized cache is useful here because we can save using ID and Typename.

Thanks again for your work!

stolinski commented 2 years ago

I'm relly excited for this new project.

I'm using https://github.com/FormidableLabs/urql currently and the svelte integration is still not perfect (they are React developers).

I'm wondering what I can miss switching to this library: I'll try in the next days.

First, two questions:

  1. Can we have a normalized cache (like https://formidable.com/open-source/urql/docs/graphcache/)? I think is not strictly needed for normal apps (they have also the https://formidable.com/open-source/urql/docs/basics/document-caching/ simple cache in fact).

  2. Can we persist cache in browser (localstorage or indexeddb)? I think the normalized cache is useful here because we can save using ID and Typename.

Thanks again for your work!

Persistant cache coming but there are no plans for a normalized central cache.