Repository navigation
Commit d237885
committed
fix(themer): clear the image picker busy state when a pick lands while hidden
An <Activity> that goes hidden unmounts the effects of its children while
keeping their state, so useImagePalette's mount ref reads as unmounted and
the finally never let go of busy. The picker then showed a spinner with no
work in progress once the sidebar, or the theme list, came back into view.
Clearing busy now only asks whether the pick is still the latest one.1 parent 5841759 commit d237885
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | | - | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| |||
0 commit comments