sanity
Version:
Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches
10 lines (7 loc) • 324 B
text/typescript
import {type SanityClient} from '@sanity/client'
import {withLocalStorageSWR} from './localStorageSWR'
import {createServerKeyValueStore} from './serverKeyValueStore'
/** @internal */
export function createKeyValueStore(options: {client: SanityClient}) {
return withLocalStorageSWR(createServerKeyValueStore(options))
}