fix(ws): handle removing untracked event listeners#7419
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7419 +/- ##
==========================================
- Coverage 80.39% 80.39% -0.01%
==========================================
Files 732 732
Lines 31028 31028
==========================================
- Hits 24945 24944 -1
- Misses 6083 6084 +1 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Overall package sizeSelf size: 4.56 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.3 | 76.87 kB | 808.03 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
BenchmarksBenchmark execution time: 2026-02-03 14:35:00 Comparing candidate commit 9f38f42 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 229 metrics, 31 unstable metrics. |
|
Fixes #7415 |
When calling removeListener/off with a handler that was never added to the tracked handlers it will fall back to the original handler instead of passing undefined. This prevents errors when users remove listeners that weren't added.