timhall / svelte-apollo

Svelte integration for Apollo GraphQL
MIT License
947 stars 68 forks source link

How can i use apollo local-state? #81

Open freeseamew opened 3 years ago

freeseamew commented 3 years ago

I have question if local-state related functions are currently available in apollo-svelte (ex: makeVAr, reactiveVar) because there is no information about this area.

Also, do you recommend using apollo's local state when processing this local state? Or do you recommend using a svelte store?

flashspys commented 3 years ago

The response of query is returning a svelte-store under the hood that is as reactive as it would be with makeVar/reactiveVar in react.