Commit d700700
committed
Fix incremental thread event UI state seeding and remove redundant useShallow
- Call syncThreads in applyEventBatch for thread.created/thread.deleted events
so incrementally created threads get their seedVisitedAt populated in
threadLastVisitedAtById, matching the snapshot recovery path behavior.
- Remove unnecessary useShallow wrapper from store.projects and store.threads
selectors in Sidebar. Zustand's default Object.is comparison already skips
re-renders when these array references are unchanged, making the O(n)
shallow comparison pure overhead.1 parent f659da5 commit d700700
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
| 439 | + | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
233 | 245 | | |
234 | 246 | | |
235 | 247 | | |
| |||
0 commit comments