logaretm / villus

🏎 A tiny and fast GraphQL client for Vue.js

Home Page:https://villus.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation : it is not explained that cache() is loaded by default

alasserr opened this issue · comments

I spent some time to understand why my 'execute()' query did not work.
Then I understood that the cache() plugin is loaded by default.
When loading villus with :

useClient({
  ..
  use: [fetch()]
});

and then not declaring on purpose the cache() plugin, the execute() is now working (it's a simple query, but I needed it to use the nework).
Should be added on the public documentation ...

Also, I still did not understand how to declare the cache policy.

Thanks anyway for your work on villus, great stuff (once one knows how to deal with cache ;) )

Well I'm just blind everything is explained here : https://villus.logaretm.com/guide/queries/ , "Caching" section.
Sorry.