Skip to content

Updating Configuration at Runtime

If the user's session changes after the platform has already been initialized (e.g. they log in without a page reload), call updateConfig to apply changes without re-mounting:

js
// User just logged in
MindtrainingPlatform.updateConfig({
  viewer: {
    userId: 'user-123',
    loggedIn: true,
    subscribed: false,
  },
})

updateConfig performs a deep merge — only the properties you pass are updated; everything else stays as-is.

Client integration documentation maintained in-repo.