UNPKG

@data-client/core

Version:

Async State Management without the Management. REST, GraphQL, SSE, Websockets, Fetch

9 lines (7 loc) 190 B
import type { State } from '../types.js'; export default function selectMeta<R = any>( state: State<R>, fetchKey: string, ): State<R>['meta'][string] { return state.meta[fetchKey]; }