mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-09-07 09:13:00 +02:00
Start porting to new urql api
It compiles. Not tested
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user