import { type Fetcher, nanoquery } from '@nanostores/query' export const fetcher: Fetcher = async ( ...args: any[] ): Promise => { const res = await fetch(args.join('')) return await res.json() } export const [createFetcherStore, createMutatorStore] = nanoquery({ fetcher })