Skip to content

Commit b874694

Browse files
Apply suggestions from code review
Co-authored-by: Sarah Dayan <[email protected]>
1 parent 453c45d commit b874694

File tree

1 file changed

+2
-2
lines changed
  • react-instantsearch-hooks/responsive-filtering/src/ResponsiveFilters

1 file changed

+2
-2
lines changed

react-instantsearch-hooks/responsive-filtering/src/ResponsiveFilters/Filters.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export function Filters() {
1212
const { uiState, setUiState } = useInstantSearch();
1313
const uiStateRef = useRef(uiState);
1414

15-
// Keep up to date uiState in a reference
15+
// Keep up-to-date `uiState` in a ref
1616
useEffect(() => {
1717
uiStateRef.current = uiState;
1818
}, [uiState]);
1919

20-
// Apply latest uiState to InstantSearch as the component is unmounted
20+
// Apply latest `uiState` to InstantSearch as the component is unmounted
2121
useEffect(() => {
2222
return () => {
2323
setTimeout(() => setUiState(uiStateRef.current));

0 commit comments

Comments
 (0)