UNPKG

@stately/hooks

Version:

state management use hooks functions

10 lines (5 loc) 241 B
import { store } from "@stately/core"; // Type definitions for @stately/hooks declare module '@stately/hooks' { export function createHooks<S, A>(store: store<S, A>): (sensitiveStateKeys: Array<string>, listener: Function) => [S, A] }