Start porting to new urql api

It compiles. Not tested
This commit is contained in:
2023-05-03 16:41:17 +02:00
parent ce8eb86569
commit f235b5e911
12 changed files with 224 additions and 142 deletions

View File

@@ -1,5 +1,5 @@
import { expiringCacheExchange } from './cache-exchange.js'
import { Client, fetchExchange } from '@urql/svelte';
import { Client, setContextClient, fetchExchange } from '@urql/svelte';
import { setContext, getContext, hasContext, onDestroy, tick } from 'svelte'
import { readable } from 'svelte/store'
@@ -32,6 +32,8 @@ export function init(extraInitQuery = '') {
]
})
setContextClient(client)
const query = client.query(`query {
clusters {
name,