Files
plane/apps/web/core/components/modules
f3831e55f8 fix: resolve React rules-of-hooks violations and nested component definitions (#6483)
* fix: resolve React rules-of-hooks violations and nested component definitions

Move all hook calls (useState, useMemo, useCallback, useEffect, useFlag)
above early returns to ensure hooks are called in the same order on every
render. Extract hooks from short-circuit && expressions into separate
variables. Move nested component definitions to module scope.

Fixes 36 react-hooks/rules-of-hooks errors and 2 nested-component errors
reported by React Doctor, raising the health score from 74 to 75/100.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: build and formatting issues

---------

Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
2026-04-02 16:29:41 +05:30
..