Callback every time xkit.js configuration is updated
Deprecated
This function has been deprecated and will be removed in a future version. Use on with the
config:update
event type instead.
Parameters
fn
:Function
A function to be called every timewindow.xkit
is updated with new configuration
Returns
void
Because xkit.js is a stateful library it allows consumers to subscribe to updates via the onUpdate
function. Typically, this function is used to be notified when xkit.js moves from a logged-in to a logged-out state, or vice versa.
When this function is called, the consumer should assume that any of the library's state may have changed, and update itself accordingly.