Skip to content

Commit 22ca1f8

Browse files
Stop trimming composer snapshots in render effect
- Remove snapshot slicing from the native composer update path - Avoid extra array churn when syncing iOS editor state
1 parent 12bfd15 commit 22ca1f8

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎apps/mobile/src/native/T3ComposerEditor.ios.tsx‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,6 @@ export function ComposerEditor({
174174
});
175175
useEffect(() => {
176176
previousRenderedEventSequenceRef.current = nativeEventSequence;
177-
const snapshots = nativeEventSnapshotsRef.current;
178-
if (snapshots.length > 50) {
179-
nativeEventSnapshotsRef.current = snapshots.slice(-50);
180-
}
181177
}, [nativeEventSequence]);
182178
const acceptNativeEvent = useCallback(
183179
(eventCount: number, value: string, nextSelection: ComposerEditorSelection) => {

0 commit comments

Comments
 (0)