ContentClientOptionsinterface
import { ContentClientOptions } from '@mortar-kit/core'
interface ContentClientOptionsOptions for contentClient. Pass the router's and server functions' helpers; Mortar depends on neither.
Properties
read?: (fn: (args: never[]) => Promise<unknown>) => unknownDeclares a read as a GET (
GETfrom@solidjs/web/server-functions), so reads aren't mutations that revalidate everything.cache?: (fn: (args: never[]) => Promise<unknown>, key: string) => unknownCaches a read per request and across hydration (
queryfrom@solidjs/router).onWrite?: () => voidRuns after each successful write, to drop cached reads (
() => query.clear()).