The cache option in the type TAsyncQuery is not used in the prep function used as a part of useAsyncQuery and useLazyAsyncQuery is not used and the fetch policy on the query that is executed is hard coded to use no-cache
Expected behaviour
The cache boolean should have an effect on whether the query that is used is cached
Reproduction
This can be seen in apollo/runtime/composables.ts in the prep function
Environment
Build Modules: -
Describe the bug
The cache option in the type
TAsyncQuery
is not used in theprep
function used as a part ofuseAsyncQuery
anduseLazyAsyncQuery
is not used and the fetch policy on the query that is executed is hard coded to useno-cache
Expected behaviour
The cache boolean should have an effect on whether the query that is used is cached
Reproduction
This can be seen in
apollo/runtime/composables.ts
in theprep
functionAs you can see the fetchPolicy is hard coded
Additional context
This is causing problems in an enterprise environment as it is slowing down the speed of our app in some cases quite dramatically.
Logs
No response