Commit ba05ff9
committed
Keep commit-dialog metadata editor mounted across live-validation refetches
The live-validation LocalResource is read inside the Commit page's Suspense
boundary, so each debounced refetch re-armed the boundary's pending set and a
plain Suspense unmounted the whole CommitContent subtree (including the JSON
editor container) to show its fallback, detaching the editor's DOM and blurring
it on every keystroke. Switch the boundary to Transition so it keeps the
already-rendered children mounted while later resource loads are pending; the
editor now mounts once per dialog open and keeps focus through validation
round-trips. Initial load still shows the spinner fallback once.1 parent 4b077d1 commit ba05ff9
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
36 | 47 | | |
37 | | - | |
| 48 | + | |
38 | 49 | | |
39 | 50 | | |
40 | 51 | | |
| |||
73 | 84 | | |
74 | 85 | | |
75 | 86 | | |
76 | | - | |
| 87 | + | |
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
| |||
0 commit comments