Home > @uniformdev/context > Context > update

Context.update() method

Updates the Context with new data of any sort, such as new URLs, cookies, quirks, and enrichments.

Only properties that are set in the data parameter will be updated. Properties that do not result in a changed state, i.e. pushing the same URL or cookies as before, will NOT result in a recomputation of signal state.

Signature:

Parameters

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

Parameter

</th><th>

Type

</th><th>

Description

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

newData

</td><td>

Partial<ContextState>

</td><td>

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

Promise<void>