The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { getFrontComponentExecutionContextListeners } from '@/remote/worker/environment/utils/getFrontComponentExecutionContextListeners';
export const subscribeToFrontComponentExecutionContextUpdates = (
listener: () => void,
): (() => void) => {
const executionContextListeners =
getFrontComponentExecutionContextListeners();
executionContextListeners.add(listener);
return () => {
executionContextListeners.delete(listener);
};
};