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

  1. fn: Function
    A function to be called every time window.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.