fix: Message recycling bug with FlashList #15
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive chat list test screen for the React Native debugger app, focusing on improving the reliability of chat message rendering and providing tools to debug list recycling issues. It also updates dependencies and enhances the test data for chat messages, including streaming and image-rich content. The most important changes are grouped below.
Chat List Testing & Debugging:
ChatTestScreencomponent that allows testing chat message rendering with bothFlashListandLegendList, supporting toggling between Streamdown and Markdown render modes, simulating streaming assistant responses, and displaying message debug info for recycling validation.ListPickerScreenfor selecting which list implementation to test from the main app screen, and refactored the app mode state to support multiple test screens. (Ffd0e18fL13R13, [1] [2]Test Data Improvements:
testMessages.tsdata module with realistic, image-rich, and code-block-containing chat messages, as well as helpers for generating user and assistant messages with streaming support and debug numbering.Bug Fixes & Dependency Updates:
AutoSizedImagecomponent for image aspect ratio accuracy.package.jsondependencies to include@shopify/flash-listandreact-native-markdown-displayfor improved list and markdown rendering. [1] [2]UI/UX Improvements:
These changes provide a robust environment for testing and debugging chat UI rendering and list recycling issues in React Native.
Fixes issue #9