Commit 679a91c
fix: merge bg analysis drill-change detection into enqueue effect
React runs useEffects in declaration order. The separate cancellation
effect was firing AFTER the enqueue effect, clearing the queue that
was just populated. Merged both into a single effect so drill-change
reset and node enqueuing happen atomically.
Also handle drill-cleared case (cancel background when no active drill).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f57a1c8 commit 679a91c
1 file changed
Lines changed: 21 additions & 16 deletions
Lines changed: 21 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | | - | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
951 | 954 | | |
952 | | - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
953 | 972 | | |
954 | 973 | | |
955 | 974 | | |
| |||
984 | 1003 | | |
985 | 1004 | | |
986 | 1005 | | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | 1006 | | |
1002 | 1007 | | |
1003 | 1008 | | |
| |||
0 commit comments