Bug report
Description / Observed Behavior
When running unit tests with Vitest, the following error occasionally occurs:

This issue does not appear consistently—it happens intermittently, which suggests a possible race condition. However, I'm unsure where to begin investigating or how to reliably reproduce it.
Expected Behavior
The test suite should run reliably without this error, or the error should be reproducible and consistent across test runs.
Repro Steps / Code Example
The issue is difficult to reproduce consistently, and the code base is in a private repo.
Additional Context
- SWR version: 2.3.0
- Vitest version: 3.2.4
- I use
jsdom (26.1.0) as the test environment.