Skip to content

Commit 37edd17

Browse files
committed
chore(studio): mark the registered preview as a stable component for the hooks lint
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTJcKuqRSJyv696zZ9
1 parent 1f6a135 commit 37edd17

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎ui/packages/app-shell/src/views/studio-design/StudioBundleItemEditor.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ export function StudioBundleItemEditor({
454454
</div>
455455
{Preview && (
456456
<div className="min-w-0 border-t lg:overflow-auto lg:border-l lg:border-t-0" data-testid="studio-bundle-editor-preview">
457+
{/* eslint-disable-next-line react-hooks/static-components -- useRegisteredMetadataPreview returns a registered component (stable), not one created during render */}
457458
<Preview type={type} name={name} draft={draft} locale={locale} editing={editable} />
458459
</div>
459460
)}

0 commit comments

Comments
 (0)