wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Warning: Can't perform a React state update on an unmounted component.

Open chantal-kelm opened this issue 1 month ago • 2 comments

Wazuh Rev Browser
4.9.0 00 -

Description

The application has a warning that is repeated many times throughout the application. We need to fix it.

Can't perform a React state update on an unmounted component.

Evidence image

image

image image

Tasks

  • [x] Create a hook to fix the warning.
  • [x] Creating unit tests
  • [ ] Use the hook in all functional components of the application.
  • [ ] Define the best way to solve the warning in class components

Additional information

Add here any additional information relevant to the issue or that will help to close it: chunks of code, logs, additional error messages, related issues and so on.

chantal-kelm avatar Jun 03 '24 16:06 chantal-kelm