Last time I ran into this in a functional component I ended up switching it to a class-based component to fix the issues.
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
at PackageCatalog (http://localhost:8080/main.js:585:52)
at Route (http://localhost:8080/main.js:38222:29)
at Switch (http://localhost:8080/main.js:38428:29)
at Router (http://localhost:8080/main.js:37851:30)
at BrowserRouter (http://localhost:8080/main.js:37458:35)
at div
at App
Last time I ran into this in a functional component I ended up switching it to a class-based component to fix the issues.
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
at PackageCatalog (http://localhost:8080/main.js:585:52)
at Route (http://localhost:8080/main.js:38222:29)
at Switch (http://localhost:8080/main.js:38428:29)
at Router (http://localhost:8080/main.js:37851:30)
at BrowserRouter (http://localhost:8080/main.js:37458:35)
at div
at App