Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## 2024-04-13 - Missing React.memo for FlatList Items
**Learning:** The React Native FlatList components in this codebase frequently render unmemoized inline items (like `ContactRow`, `PasswordRow`, etc.), causing unnecessary re-renders of the entire list when individual state changes.
**Action:** Always wrap long list item components in `React.memo()` to prevent cascading re-renders and improve FlatList scrolling performance.
## 2024-04-19 - Fix React.memo and list rendering
**Learning:** Inline callback functions and missing useCallback defeat React.memo's shallow comparison in list rendering, leading to unnecessary re-renders of all list items.
**Action:** Always wrap callback props for list items in useCallback and pass item IDs instead of using inline arrow functions in renderItem. Also add windowing props to FlatList for large lists.
Loading
Loading