Skip to content

Type Alias: UseRx_SetValue<TOut, Merge> ​

UseRx_SetValue<TOut, Merge> = React.Dispatch<React.SetStateAction<Merge extends true ? Partial<TOut> : TOut>> & object

Defined in: packages/rx-react/src/useRx.ts:225

The state dispatcher returned by useRx. Includes a mounted flag (used internally) to prevent state updates on unmounted components.

Type Declaration ​

mounted ​

mounted: boolean

subscription? ​

optional subscription?: Subscription

Type Parameters ​

TOut ​

TOut

Merge ​

Merge extends boolean