fix(content-preview): Prevent stuck loading mask for custom previews - #4766
fix(content-preview): Prevent stuck loading mask for custom previews#4766jmcbgaston wants to merge 1 commit into
Conversation
Custom renderers own their loading lifecycle and do not initialize Box.Preview. Avoid starting a loading session that has no matching preview load event.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Walkthrough
ChangesCustom preview loading
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Biome (2.5.6)src/elements/content-preview/ContentPreview.jsFile contains syntax errors that prevent linting: Line 21: 'import type' are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 36: 'import { type x ident }' are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 67: 'import type' are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 68: 'import type' are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 69: 'import type' are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 70: 'import type' are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 71: 'import type' are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 72: 'import type' are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 73: ' ... [truncated 19028 characters] ... nly feature. Convert your file to a TypeScript file or remove the syntax.; Line 1601: type annotation are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 1613: type annotation are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 1620: Type annotations are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.; Line 1652: expected Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@Mergifyio queue |
Merge Queue Status
Waiting for any of
All conditions
|
Description
Custom previews no longer start the preview loading state when the selected version changes. This prevents the loading mask from remaining over rendered content while preserving standard preview loading behavior.
Summary by CodeRabbit
Bug Fixes
Tests