SvelteStack / svelte-query

Performant and powerful remote data synchronization for Svelte
https://sveltequery.vercel.app
MIT License
822 stars 30 forks source link

fix(queries): Fix stale values after calling set/updateOptions #91

Open pzcfg opened 2 years ago

pzcfg commented 2 years ago

This ensures that the cached value or undefined are set when changing the query key, so incorrect data is not shown when updating and setting options.

This is attempting to address #89, and seems to fix that issue for me, but I'm not sure what other implications this has.