Merge pull request #28323 from overleaf/mj-client-side-references-event

[web] Add event for client side referencing

GitOrigin-RevId: 10de187b56a8e27e13231af8e9cb52a52896a6fe
This commit is contained in:
Mathias Jakobsen
2025-09-08 09:19:19 +01:00
committed by Copybot
parent ed6d5a3b86
commit 21352c7580
@@ -25,6 +25,7 @@ import { useFeatureFlag } from '@/shared/context/split-test-context'
import type { ReferenceIndexer } from '../references/reference-indexer'
import { AdvancedReferenceSearchResult } from '@/features/ide-react/references/types'
import clientId from '@/utils/client-id'
import { sendMBOnce } from '@/infrastructure/event-tracking'
export const ReferencesContext = createContext<
| {
@@ -81,6 +82,7 @@ export const ReferencesProvider: FC<React.PropsWithChildren> = ({
const indexAllReferencesLocally = useCallback(
async (shouldBroadcast: boolean) => {
sendMBOnce('client-side-references-index')
abortControllerRef.current?.abort()
if (!indexerRef.current) {