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) // Force refresh list with existing unchanged variables (== usually would not trigger reactivity)
export function refresh() { export function refresh() {
queryStore({ jobs = queryStore({
client: client, client: client,
query: query, query: query,
variables: { paging, sorting, filter }, variables: { paging, sorting, filter },

View File

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