Commit 54e756f56627ca429ab3edd56073f7ccf1a79979

Authored by zichun
1 parent afe6613a

chore(frontend): silence react-hooks/set-state-in-effect on UserList load effect

The effect intentionally reloads when the memoized load callback's
identity changes (i.e. when filter dropdowns/queryValue change),
which is the documented use of useCallback-as-dep. The new React 19
lint rule flags any setState inside an effect as cascading-render
risk. Adding a directed disable with rationale instead of refactoring,
since the current behavior is intended UX (live filter response).
frontend/src/pages/usr/UserList.tsx
... ... @@ -63,6 +63,7 @@ export default function UserList() {
63 63 }
64 64 }, [pageSize, queryField, matchType, queryValue])
65 65  
  66 + // eslint-disable-next-line react-hooks/set-state-in-effect -- intentional reload when filter callback identity changes
66 67 useEffect(() => { load(1) }, [load])
67 68  
68 69 const handleAdd = () => {
... ...