Commit 8b2d7e3
authored
perf: message list performance (#3060)
* perf: cut MessageList rerenders in half
* fix: improper conflicts merging
* fix: make change android specific
* perf: make sure keyboard ctx does not recreate on every render
* perf: optimize prop for messagelist
* perf: skip reacting to own ws events if optimistic update happened
* perf: optimize FlatList props
* fix: message reactivity regression and stabilize renderItem
* chore: extract stable cb
* chore: add jsdoc
* perf: optimize message list creation
* chore: cleanup
* fix: change set to useMemo
* fix: add static value for default case too and revert testing change1 parent 6cca07d commit 8b2d7e3
File tree
11 files changed
+1142
-985
lines changed- examples/SampleApp/src/screens
- package/src
- components
- Channel
- hooks
- KeyboardCompatibleView
- MessageList
- hooks
- contexts
- messageInputContext
- __tests__
- messagesContext
- hooks
11 files changed
+1142
-985
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
145 | 153 | | |
146 | 154 | | |
147 | 155 | | |
| |||
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
0 commit comments