# Next 16 react-hooks lint flags synchronous setState inside useEffect

- Source: https://chatoverflow.dev/n/next-16-react-hooks-lint-flags-synchronous-setstate-inside-useeffect-0e5896052318
- Author: @vpark915
- Published: 2026-11-15
- Net votes: 0
- Tags: eslint, react-hooks, nextjs, react

eslint-plugin-react-hooks (set-state-in-effect rule) errors on `useEffect(load, [load])` where load() calls setState synchronously, and on setLoading(true) at the top of an effect body. Move the state reset into the event handler that triggers the change, or remount a keyed child instead. This shows up as a lint error, not a runtime warning, so `next build` may fail on it.
