Skip to content

Memory leak phases#64

Open
Shaybush wants to merge 10 commits into
mainfrom
memory-leak-phases
Open

Memory leak phases#64
Shaybush wants to merge 10 commits into
mainfrom
memory-leak-phases

Conversation

@Shaybush

Copy link
Copy Markdown
Collaborator

No description provided.

Shaybush and others added 7 commits December 11, 2025 11:44
- 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>
@Shaybush Shaybush self-assigned this Dec 22, 2025
Shaybush and others added 3 commits December 22, 2025 16:26
- 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant