The Context controller exposes methods for managing the global context in a commerce interface.
Context
Sets the country.
The new country.
Sets the currency.
The new currency.
Sets the language.
The new language.
Sets the view.
The new view.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
A scoped and simplified part of the headless state that is relevant to the Context controller.
The
Context
controller exposes methods for managing the global context in a commerce interface.