Skip to content

Fix ESlint rules-of-hooks warnings in App.tsx #217

Closed
@cliffhall

Description

@cliffhall

Describe the bug
Although this previous PR was intended to fix ESlint warnings about rules of hooks, IDE continues to highlight it in the current App.tsx

To Reproduce
Steps to reproduce the behavior:

  1. cd to inspector/client
  2. run eslint
Image

Expected behavior
No warnings about React Hooks being called conditionally.

Additional context
Raised in response to this PR which was going to incidentally suppress rules-of-hooks warnings. Instead of suppressing the warning, I intend to fix the problem.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions