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

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

options

</td><td>

UseUniformContextThrowsOptions

</td><td>

(Optional)

</td></tr> </tbody></table> Returns:

UniformContextProps