MCPcopy
hub / github.com/kitze/react-hanger / UseSet

Interface UseSet

src/useSet.ts:5–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import type { UseStateful } from './useStateful';
4
5export interface UseSet<T> extends UseStateful<Set<T>>, UseSetActions<T> {}
6
7export function useSet<T>(initialState: Set<T> = new Set()): UseSet<T> {
8 const [value, actions] = useSetArray(initialState);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected