This repository was archived by the owner on Aug 6, 2026. It is now read-only.
Commit 61fb7c1
authored
refactor(channels): simplify stale-thread suppression to a lazy useState
The ref-based version split the same fact across render, a mutable ref,
and an effect. A lazy useState initialiser captures the inherited entry
once; the render excludes it and one effect clears the store. Same
behavior, one less moving part.
Generated-By: PostHog Code
Task-Id: cdb544dd-fce7-4877-9c38-e912994005851 parent 2f05d00 commit 61fb7c1
1 file changed
Lines changed: 9 additions & 13 deletions
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
148 | 145 | | |
149 | | - | |
| 146 | + | |
150 | 147 | | |
151 | | - | |
152 | 148 | | |
153 | | - | |
| 149 | + | |
154 | 150 | | |
155 | 151 | | |
156 | 152 | | |
| |||
334 | 330 | | |
335 | 331 | | |
336 | 332 | | |
337 | | - | |
| 333 | + | |
338 | 334 | | |
339 | 335 | | |
340 | 336 | | |
| |||
0 commit comments