Commit 85ebf42
committed
Avoid infinite loop by tracking previous head
Prevent infinite reactivity loops by storing the previous head value and only invalidating stacks and details when the head actually changes. The change introduces a previousHead state variable and uses untrack to update it and call stackService.invalidateStacksAndDetails() only when head differs from previousHead.1 parent f3381ef commit 85ebf42
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
209 | 211 | | |
210 | | - | |
211 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
| |||
0 commit comments