Prerequisites
Environment check
Browsers
Chromium (Chrome, Brave, etc.)
Reproduction repository
https://github.com/psea/msw-hidden-timeout
Reproduction steps
Test app with steps to reproduce is deployed here:
https://psea.github.io/msw-hidden-timeout/
- ✅ Check the status of the MSW. See the response.
- ⚠️ Close developer tools if open.
- 💤 Minimize the window or switch the tab.
- ⏳ Wait 5 min before restoring the window.
- ❌ Check the status of the MSW again. See the error.
- ⛑️ Click the "🔧 Fix MSW" button to restore the mocking.
- ✅ Check the status of the MSW again. See the response restored.
Current behavior
MSW stops handling requests after page is in a hidden state for 5 min.
Expected behavior
MSW continue handling requests after page become visible.
Related
Duplicate of #2115
Prerequisites
Environment check
mswversionBrowsers
Chromium (Chrome, Brave, etc.)
Reproduction repository
https://github.com/psea/msw-hidden-timeout
Reproduction steps
Test app with steps to reproduce is deployed here:
https://psea.github.io/msw-hidden-timeout/
Current behavior
MSW stops handling requests after page is in a hidden state for 5 min.
Expected behavior
MSW continue handling requests after page become visible.
Related
Duplicate of #2115