Skip to content

fix: prevent image blinking in chat full screen view#363

Open
xcarpentier wants to merge 1 commit intomainfrom
fix/chat-image-blinking-fullscreen
Open

fix: prevent image blinking in chat full screen view#363
xcarpentier wants to merge 1 commit intomainfrom
fix/chat-image-blinking-fullscreen

Conversation

@xcarpentier
Copy link
Copy Markdown
Contributor

Summary

• Prevents image blinking/flashing when opening chat images in full screen
• Optimizes cache behavior to avoid unnecessary refetches
• Eliminates visual artifacts during layout transitions

Changes

• Set staleTime: 5min in useImage hook (was 0, causing refetch on every mount)
• Replaced opacity transition with conditional rendering in MediaGallery
• Removed imageData from component keys to prevent unnecessary remounting

Type

fix

🤖 Generated with Claude Code

Fixed three root causes of image flashing during full screen transitions:
- Set staleTime to 5 minutes in useImage hook to prevent unnecessary refetches
- Replaced opacity transition with conditional rendering in MediaGallery
- Removed imageData from component keys to prevent remounting

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <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