wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
Warning: Can't perform a React state update on an unmounted component.
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
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.