Skip to content
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

fix(app): improve rendering code preview on large files #3284

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

onx2
Copy link
Contributor

@onx2 onx2 commented Dec 18, 2024

Description

  • Fixes WB-22387

This PR memoizes the code preview component, isolates the scroll to only the preview, and removes highlighting when the file gets large enough. This isn't a perfect solution but at least before the code freeze the page becomes usable.

Testing

Tested on open ai large files >8MB

@onx2 onx2 requested a review from a team as a code owner December 18, 2024 17:17
@onx2 onx2 self-assigned this Dec 18, 2024
@circle-job-mirror
Copy link

circle-job-mirror bot commented Dec 18, 2024

onx2 added 2 commits December 18, 2024 12:22
this is probably happpening because of some erroneous react code running that uses
prism.highlightAll but who knows
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.

2 participants