UNPKG

@mui/x-internals

Version:

Utility functions for the MUI X packages (internal use only).

6 lines 391 B
import type { ReadonlyStore } from "./Store.js"; /** * An Effect implementation for the Store. This should be used for side-effects only. To * compute and store derived state, use `createSelectorMemoized` instead. */ export declare function useStoreEffect<State, Value>(store: ReadonlyStore<State>, selector: (state: State) => Value, effect: (previous: Value, next: Value) => void): void;