Skip to content

Commit 83f36d8

Browse files
committed
Update A11yContextProvider comment to clarify dependency exclusion in useEffect
1 parent 9e5690b commit 83f36d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/addons/a11y/src/components/A11yContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export const A11yContextProvider: FC<PropsWithChildren> = (props) => {
324324
return { ...prev, ui: update };
325325
});
326326

327-
// We intentionally do not include setHighlighted/setTab/setUiState in deps to avoid loops
327+
// We intentionally do not include setState in deps to avoid loops
328328
// eslint-disable-next-line react-hooks/exhaustive-deps
329329
}, [a11ySelection]);
330330

0 commit comments

Comments
 (0)