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 453c45d commit b874694Copy full SHA for b874694
react-instantsearch-hooks/responsive-filtering/src/ResponsiveFilters/Filters.tsx
@@ -12,12 +12,12 @@ export function Filters() {
12
const { uiState, setUiState } = useInstantSearch();
13
const uiStateRef = useRef(uiState);
14
15
- // Keep up to date uiState in a reference
+ // Keep up-to-date `uiState` in a ref
16
useEffect(() => {
17
uiStateRef.current = uiState;
18
}, [uiState]);
19
20
- // Apply latest uiState to InstantSearch as the component is unmounted
+ // Apply latest `uiState` to InstantSearch as the component is unmounted
21
22
return () => {
23
setTimeout(() => setUiState(uiStateRef.current));
0 commit comments