Skip to main content

Function: consumeData()

consumeData<C, D>(context, defaultValue?): Exclude<D, undefined> | Exclude<C & Partial <ConsumeData>["data"], undefined>

Type parameters

C extends object

D = never

Parameters

context: C & Partial <ConsumeData>

defaultValue?: D

Returns

Exclude<D, undefined> | Exclude<C & Partial <ConsumeData>["data"], undefined>

Source

packages/core/src/actions/context/consumers/consumeData.ts:4