suspense-service / Exports / useIdContext
▸ useIdContext<T>(context
: IdContext<T>, id?
: Id): T
Consumes a value from an IdContextProvider
Name |
---|
T |
Name | Type | Description |
---|---|---|
context |
IdContext<T> | the IdContext to use |
id? |
Id | the IdContextProvider id to use |
Returns: T
Defined in: IdContext/index.ts:45