A scoped and simplified part of the headless state that is relevant to the Context controller.
Sets the country.
The new country.
Sets the currency.
The new currency.
Sets custom context values.
An object containing custom key-value pairs.
Sets the language.
The new language.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
The
Contextcontroller exposes methods for managing the global context in a commerce interface.