suspense-service / Exports / createIdContext
▸ createIdContext<T>(defaultValue
: T): IdContext<T>
Creates a keyed Context allowing multiple nested Providers to be accessible in the same scope.
Name |
---|
T |
Name | Type | Description |
---|---|---|
defaultValue |
T | the value consumed if no IdContextProvider is in scope and the consumer id is null |
Returns: IdContext<T>
Defined in: IdContext/index.ts:28