Skip to content

fix: move HunkContextMenu outside each block #8224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

estib-vega
Copy link
Contributor

Move the HunkContextMenu component outside the each block in UnifiedDiffView.svelte
to ensure it is rendered only once. This prevents multiple instances from being created
and improves performance and maintainability of the diff view component.

@vercel vercel bot temporarily deployed to Preview – gitbutler-web April 22, 2025 11:45 Inactive
Copy link

vercel bot commented Apr 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gitbutler-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2025 11:48am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
gitbutler-web ⬜️ Skipped (Inspect) Apr 22, 2025 11:48am

Move the HunkContextMenu component outside the each block in UnifiedDiffView.svelte
to ensure it is rendered only once. This prevents multiple instances from being created
and improves performance and maintainability of the diff view component.
@estib-vega estib-vega force-pushed the fix-hunk-context-menu branch from a932029 to ebbf80d Compare April 22, 2025 11:48
@vercel vercel bot temporarily deployed to Preview – gitbutler-web April 22, 2025 11:48 Inactive
@estib-vega estib-vega merged commit 6055828 into master Apr 22, 2025
19 checks passed
@estib-vega estib-vega deleted the fix-hunk-context-menu branch April 22, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant