fix: retrigger gql api at manual refresh

- solves #221
This commit is contained in:
Christoph Kluge 2023-11-03 17:09:16 +01:00
parent 4b922c575e
commit d9f9c8aaf5
2 changed files with 5 additions and 4 deletions

View File

@ -89,7 +89,7 @@
// Force refresh list with existing unchanged variables (== usually would not trigger reactivity)
export function refresh() {
queryStore({
jobs = queryStore({
client: client,
query: query,
variables: { paging, sorting, filter },

View File

@ -64,11 +64,12 @@
variables: { id, metrics, scopes }
});
function refresh() {
queryStore({
export function refresh() {
metricsQuery = queryStore({
client: client,
query: query,
variables: { id, metrics, scopes }
variables: { id, metrics, scopes },
// requestPolicy: 'network-only' // use default cache-first for refresh
});
}