mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 15:49:01 +02:00
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:
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) {
|
||||
|
||||
Reference in New Issue
Block a user