We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1cd93d commit e7dfcc1Copy full SHA for e7dfcc1
static/app/components/commandPalette/useCommandPaletteAnalytics.tsx
@@ -54,18 +54,14 @@ export function useCommandPaletteAnalytics(filteredActionCount: number): {
54
state,
55
});
56
57
- useEffect(() => {
58
- analyticsState.current.state = state;
59
- });
60
-
61
- // Track any query input as interaction immediately (not debounced)
62
useEffect(() => {
63
if (state.query.length > 0) {
64
analyticsState.current.hadInteraction = true;
65
}
66
- }, [state.query]);
+ analyticsState.current.state = state;
+ }, [state]);
67
68
- // Debounced query tracking (500ms)
+ // Debounced query tracking
69
70
const s = analyticsState.current;
71
if (state.query.length === 0 || state.query === s.lastTrackedQuery) {
0 commit comments