etn-ccis / blui-react-component-library

Re-usable React components for use in Brightlayer UI applications
BSD 3-Clause "New" or "Revised" License
16 stars 10 forks source link

Fix improper usage of hooks #860

Closed joebochill closed 5 months ago

joebochill commented 6 months ago

Describe the bug / expected behavior

We are improperly using hooks in a number of places. Update the code to resolve these issues.

What are the steps to reproduce?

  1. Configure the ESLint plugin for react hooks: https://www.npmjs.com/package/eslint-plugin-react-hooks
  2. Run Lint
  3. Observe the errors

Screenshots / Screen recording

image

Suggested fix

Configure the plugin permanently in the repo to add this to our linting rules. Resolve the identified errors & warnings.