Commit c2a73b9
committed
fix: show progress bar instead of blank loading screen during bulk create
setLoading(true) was being called in onCreate, causing the component to
return <div>Loading...</div> early and hide the form and progress bar
entirely. Users saw a blank screen with no feedback until all requests
completed (or indefinitely for large counts like 50,000).
The loading state is only meant for edit mode (fetching an existing
subscriber's data). Batch creation progress is already tracked separately
via createProgress state, which drives the progress bar and button label.1 parent 56b0948 commit c2a73b9
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| |||
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
190 | | - | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
0 commit comments