MCPcopy
hub / github.com/jamiebuilds/unstated-next / Container

Interface Container

src/unstated-next.tsx:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6}
7
8export interface Container<Value, State = void> {
9 Provider: React.ComponentType<ContainerProviderProps<State>>
10 useContainer: () => Value
11}
12
13export function createContainer<Value, State = void>(
14 useHook: (initialState?: State) => Value,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…