Skip to content

Commit f95fa89

Browse files
t3dotggclaude
andcommitted
chore(web): use the renamed no-unreasoned-state-sync lint rule
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 70de346 commit f95fa89

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎apps/web/src/components/WorkspaceNavigation.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function useWorkspaceArea(name: string, order: number, label: string) {
3030

3131
/** Runs once per page entry; section changes and background data retain deliberate focus. */
3232
export function useWorkspacePageFocus(area: string, selector?: string) {
33-
// oxlint-disable-next-line t3code/react-effect-budget -- Entering a page moves DOM focus into it once the page has committed.
33+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- Entering a page moves DOM focus into it once the page has committed.
3434
useEffect(() => {
3535
const frame = requestAnimationFrame(() =>
3636
requestWorkspaceFocus({ area, ...(selector ? { selector } : {}) }),
@@ -56,7 +56,7 @@ export function WorkspaceNavigation({
5656
},
5757
}),
5858
);
59-
// oxlint-disable-next-line t3code/react-effect-budget -- Area navigation listens to window keys, focus requests, and the desktop menu bridge.
59+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- Area navigation listens to window keys, focus requests, and the desktop menu bridge.
6060
useEffect(() => {
6161
const controller = createWorkspaceFocusController(document);
6262
let frame = 0;

‎apps/web/src/hooks/useWorkspaceFocusRecovery.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function useWorkspaceFocusRecovery(
1313
) {
1414
const ownedFocus = useRef<HTMLElement | null>(null);
1515
const previousLayout = useRef(layout);
16-
// oxlint-disable-next-line t3code/react-effect-budget -- Tracks DOM focus, which React does not own.
16+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- Tracks DOM focus, which React does not own.
1717
useEffect(() => {
1818
const remember = () => {
1919
const active = document.activeElement;
@@ -25,7 +25,7 @@ export function useWorkspaceFocusRecovery(
2525
document.addEventListener("focusin", remember);
2626
return () => document.removeEventListener("focusin", remember);
2727
}, [selector]);
28-
// oxlint-disable-next-line t3code/react-effect-budget -- A layout change can hide the focused element; recover before paint.
28+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- A layout change can hide the focused element; recover before paint.
2929
useLayoutEffect(() => {
3030
if (previousLayout.current === layout) return;
3131
previousLayout.current = layout;

‎apps/web/src/hooks/useWorkspacePanelFocus.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { requestWorkspaceContentFocus, requestWorkspaceFocus } from "../lib/work
77
/** User panel choices hand focus to the committed surface; automatic openings remain passive. */
88
export function useWorkspacePanelFocus(threadRef: ScopedThreadRef | null) {
99
const threadKey = threadRef ? scopedThreadKey(threadRef) : null;
10-
// oxlint-disable-next-line t3code/react-effect-budget -- Compares consecutive panel store states, which render cannot see.
10+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- Compares consecutive panel store states, which render cannot see.
1111
useEffect(() => {
1212
if (!threadKey) return;
1313
return useRightPanelStore.subscribe((state, previous) => {

0 commit comments

Comments
 (0)