Fix boot.js on .NET 8 and infiniteScroll cleanup #4
Loading…
Reference in a new issue
No description provided.
Delete branch "b/js-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🤖 Claude AI Code Review
Summary: Adds a grace-period delay before showing the reconnect modal, increases retry count, dual-shape circuit options for .NET 8 compatibility, and fixes scroll listener leaks in infiniteScroll.js.
Code Quality: ⭐⭐⭐⭐☆
Solid cleanup — the listener-reference tracking properly fixes real memory leaks, and the reconnect logic is well-reasoned.
Issues
🟢 boot.js —
hasMoreItemsreferenced in infiniteScroll'scheckScroll(self.hasMoreItems) is never defined on the object; it'sundefinedso the guardif (!self.hasMoreItems) return;short-circuits and always returns early. This is pre-existing behavior but worth verifying it's set elsewhere at runtime.🟢 boot.js — With
maximumRetryCount = 8and a 3s interval, total reconnect window is now ~24s+ before giving up. Confirm this is intended, as it's a significant increase from the prior ~9s.The core changes are correct: the modal grace timer is properly cleared on cancel, scroll handlers are now dereferenced and removed to prevent leaks, and the dual-shape start options are a reasonable compatibility approach. The flagged items are minor/verification-only.
📊 Tokens: 3964 input + 469 output | 💰 Cost: ~$0.0315
Generated by Claude Opus 4.8 via Gitea Actions