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 4d22b1c commit 7333c8fCopy full SHA for 7333c8f
static/app/components/commandPalette/useCommandPaletteAnalytics.tsx
@@ -44,7 +44,9 @@ export function useCommandPaletteAnalytics(filteredActionCount: number): {
44
const sessionIdRef = useRef(uniqueId('cmd-palette-'));
45
46
const stateRef = useRef(state);
47
- stateRef.current = state;
+ useEffect(() => {
48
+ stateRef.current = state;
49
+ });
50
51
const openedAtRef = useRef(Date.now());
52
const actionsSelectedRef = useRef(0);
0 commit comments