@@ -3,7 +3,6 @@ import AppRegistry, {
33 AppRegistryProvider ,
44 GlobalAppRegistryProvider ,
55} from 'hadron-app-registry' ;
6- import { UUID } from 'bson' ;
76import type { ConnectionInfo } from '@mongodb-js/compass-connections/provider' ;
87import { useConnectionActions } from '@mongodb-js/compass-connections/provider' ;
98import { CompassInstanceStorePlugin } from '@mongodb-js/compass-app-stores' ;
@@ -15,11 +14,7 @@ import {
1514 DatabasesWorkspaceTab ,
1615 CollectionsWorkspaceTab ,
1716} from '@mongodb-js/compass-databases-collections' ;
18- import {
19- CompassComponentsProvider ,
20- css ,
21- usePersistedState ,
22- } from '@mongodb-js/compass-components' ;
17+ import { CompassComponentsProvider , css } from '@mongodb-js/compass-components' ;
2318import {
2419 WorkspaceTab as CollectionWorkspace ,
2520 CollectionTabsProvider ,
@@ -266,9 +261,6 @@ const CompassWeb = ({
266261 onLog,
267262 onDebug,
268263 } ) ;
269- const [ telemetryAnonymousId ] = usePersistedState ( 'telemetryAnonymousId' , ( ) =>
270- new UUID ( ) . toString ( )
271- ) ;
272264
273265 const preferencesAccess = useRef (
274266 new CompassWebPreferencesAccess ( {
@@ -292,7 +284,6 @@ const CompassWeb = ({
292284 enableCreatingNewConnections : false ,
293285 enableGlobalWrites : false ,
294286 optInDataExplorerGenAIFeatures : false ,
295- telemetryAnonymousId,
296287 ...initialPreferences ,
297288 } )
298289 ) ;
0 commit comments