Describe the bug
If you view the logs and then navigate to a different page, the Medusa client will continue making regular requests to the log API in the background.
To Reproduce
- Open Medusa
- Open DevTools > Network. Filter to "log".
- Navigate to the View Log page. Observe that regular log requests start being made.
- Navigate to any other page in Medusa. Observe that the log requests are still being made.
Expected behavior
When I stop viewing the logs, they should stop being loaded.
Medusa (please complete the following information):
Debug logs (at least 50 lines):
Not relevant