Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

User Account Data & Events

The User Account drop-in uses the event bus to emit and listen to events for communication between drop-ins and external integrations.

Version: 3.0.0-beta4

Events reference

EventDirectionDescription
companyContext/changedListensFired by Company Context (companyContext) when a change occurs.

Event details

The following sections provide detailed information about each event, including its direction, event payload, and usage examples.

companyContext/changed (listens)

Fired by Company Context (companyContext) when a change occurs.

Event payload

Example

import { events } from '@dropins/tools/event-bus.js';
events.on('companyContext/changed', (payload) => {
console.log('companyContext/changed event received:', payload);
// Add your custom logic here
});