Explain the immutable answer identity used to reset preview scrolling

This commit is contained in:
Brennan Benson
2026-11-09 16:58:39 -08:00
parent 07ea4b027d
commit 9d8f7bcede
@@ -56,7 +56,11 @@ export function MobileNativeChatOptionPreviewSheet({
})}
onClose={onClose}
/>
<ReadablePreview key={`${index}:${option.label}`} preview={option.preview ?? ''} />
<ReadablePreview
// oxlint-disable-next-line react-doctor/no-array-index-as-key -- Option indices are immutable answer identities; changing pages resets both scroll axes.
key={index}
preview={option.preview ?? ''}
/>
{previews.length > 1 ? (
<ScrollView
horizontal