The visibilitychange handler was registered with an anonymous arrow function, making it impossible to remove via removeEventListener. Extracted it to a named variable (onVisibilityChange) and added proper cleanup, matching the pattern already used for onError / onRejection / onUnload. Added two new tests in the cleanup suite: - removes visibilitychange event listener - no longer flushes on visibilitychange after cleanup Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| e2e | ||
| screenshots | ||
| server | ||
| src | ||
| .env.local.example | ||
| .gitignore | ||
| next-env.d.ts | ||
| next.config.js | ||
| package.json | ||
| postcss.config.mjs | ||
| tsconfig.json | ||
| vitest.config.ts | ||