deno.land / x / jotai@v1.8.4 / src / urql / clientAtom.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { createClient } from '@urql/core'import { atom } from 'jotai'
const DEFAULT_URL = (() => { try { return process.env.JOTAI_URQL_DEFAULT_URL } catch { return undefined } })() || '/graphql'
export const clientAtom = atom(createClient({ url: DEFAULT_URL }))
jotai

Version Info

Tagged at
2 years ago