ReducerOptions
Options of useReducer.
Options of useReducer.
Import#
ts
import type { ReducerOptions } from "@shadow-js/core";
Signature#
ts
interface ReducerOptions {
/**
* Decides whether a new state is a change: readers are notified only when it returns `false`.
* @default Object.is
*/
equals?: Equals<unknown>;
/**
* Label shown by devtools and diagnostics.
* @default undefined (the state is unnamed)
*/
name?: string;
}
Members#
| Name | Type | Description |
|---|---|---|
equals? |
equals?: Equals<unknown> |
Decides whether a new state is a change: readers are notified only when it returns false. |
name? |
name?: string |
Label shown by devtools and diagnostics. |