Home > @uniformdev/context-react > useUniformContext
useUniformContext() function
Gets the current Uniform Context object (must be within a UniformContext component ancestor)
IMPORTANT: The Context object's scores and quirks (i.e. context.scores) are NOT reactive when fetched with this hook. If you need reactive scores or quirks use useScores
and useQuirks
instead.
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
options | UseUniformContextThrowsOptions | (Optional) |
Returns:
UniformContextProps