Skip to content

chore: remaining exhaustive-deps disables #930

Closed

Description

@EVWorth

Several places turn off react-hooks/exhaustive-deps, so their hook dependencies go unchecked. The one in ImportDialog was hiding a real ordering bug (#924). These remain:

  • src/components/schema/SchemaTree.tsx:191
  • src/components/schema/useTreeNavigation.ts:31
  • src/components/editor/FormatterSettingsDialog.tsx:47

There is also a stale directive at src/types/__tests__/index.test.ts:38; lint reports it as "Unused eslint-disable directive" for no-unused-expressions.

Fix

For each one, remove the disable, see what the rule asks for, and fix the dependencies properly. Where a stale closure is what's intended, use a ref instead. Delete the unused directive.

Activity

  1. added
    bug
    on Oct 30, 2026
  2. added a commit that references this issue on Oct 30, 2026
    db3a3b7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions