feat: Add new event hooks (#5530)
* feat: Add new event hooks * fix: update event
This commit is contained in:
@@ -6,6 +6,8 @@ import { useSettingsStore } from './settings';
|
||||
import { FeatureFlags } from 'n8n-workflow';
|
||||
import { EXPERIMENTS_TO_TRACK } from '@/constants';
|
||||
import { useTelemetryStore } from './telemetry';
|
||||
import { runExternalHook } from '@/mixins/externalHooks';
|
||||
import { useWebhooksStore } from './webhooks';
|
||||
|
||||
export const usePostHogStore = defineStore('posthog', () => {
|
||||
const usersStore = useUsersStore();
|
||||
@@ -104,6 +106,10 @@ export const usePostHogStore = defineStore('posthog', () => {
|
||||
});
|
||||
|
||||
trackedDemoExp.value[name] = variant;
|
||||
runExternalHook('posthog.featureFlagsUpdated', useWebhooksStore(), {
|
||||
name,
|
||||
variant,
|
||||
});
|
||||
};
|
||||
|
||||
watch(
|
||||
|
||||
Reference in New Issue
Block a user