Memory leak phases#64
Open
Shaybush wants to merge 10 commits into
Open
Conversation
- Fixed import ordering in app.tsx (moved imports above const declaration) - All memory leak fixes verified in place - Build passes successfully - ESLint passes (0 errors, 23 pre-existing warnings) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Phase A: Quick Config Wins (React Query) - Phase B: Buffer & Cache Management (4 issues) - Phase C: Timer & Lifecycle Cleanup (2 issues) - Phase D: Dependency Array Fixes (2 issues) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Changed refetchOnReconnect: 'stale' → true - Changed refetchOnMount: 'stale' → true - 'stale' is not a valid option; true = refetch only if stale 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Updated all references from invalid 'stale' value to correct 'true' value for refetchOnReconnect and refetchOnMount options. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Moved handleBeforeUnload outside useEffect and wrapped with React.useCallback - Added saveMessageMutation to dependency array - useEffect now depends on handleBeforeUnload for proper cleanup on changes - Prevents stale closure issues with event listeners 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Added useCallback to imports - Changed React.useCallback → useCallback (25 occurrences) - Changed React.useEffect → useEffect (3 occurrences) - Changed React.useMemo → useMemo (1 occurrence) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.