import type { ResolvedCached } from './Cache' import type { CacheKey, CacheOptions } from './types' import { useRead } from './useRead' /** * @experimental This is experimental feature. */ export interface ReadProps extends CacheOptions { children: (props: ResolvedCached['state']) => JSX.Element } /** * @experimental This is experimental feature. */ export function Read({ children, ...options }: ReadProps) { return <>{children(useRead(options))} }