Commit ffe4eec
committed
fix: stop the network-graph focus being cleared before the graph reads it
The redirect focus person was still landing on the top repeat offender
even after the args/result coercion fix. Root cause was a state-clearing
race: App clears requestedNetworkFocus in onInitialTabConsumed right after
the dashboard mounts, and Dashboard passed that live prop straight to
NetworkGraph. The focus flipped 6584 -> undefined on the very next render,
NetworkGraph's effect re-ran, cancelled the focused fetch, and refetched
without a focus -- selecting repeat_offenders[0].
Capture networkFocusPersonId into dashboard state once at mount (mirroring
how activeTab captures initialTab) so clearing the App-level prop can no
longer retrigger the graph.1 parent 5c59a2d commit ffe4eec
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
277 | 284 | | |
278 | 285 | | |
279 | 286 | | |
| |||
642 | 649 | | |
643 | 650 | | |
644 | 651 | | |
645 | | - | |
| 652 | + | |
646 | 653 | | |
647 | 654 | | |
648 | 655 | | |
| |||
0 commit comments