Commit 3a98bc4
committed
Ensure PaginatedResourceTable blocks first render on fetchSecondaryResources
- a list may need secondary resources
- these can either be to support the whole list (fetchSecondaryResources), or an individual page (fetchPageSecondaryResources)
- for fetchSecondaryResources, often used when SSP is disabled, it was trying to block loading of the list on the primary resource and secondary resource fetch
- however as soon as the primary resource was fetched, before the secondary resources compelted, the list would render the page
- if the page depends on secondary resources for sorting/filtering then they would be missed
- fix
- instead of fetching both primary at secondary in parallel fetch in sequence
- this ensure the initial sort/filter is correct1 parent b9a6614 commit 3a98bc4
2 files changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 119 | | |
124 | | - | |
| 120 | + | |
125 | 121 | | |
126 | 122 | | |
127 | | - | |
| 123 | + | |
128 | 124 | | |
129 | 125 | | |
130 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
305 | 307 | | |
306 | | - | |
| 308 | + | |
| 309 | + | |
307 | 310 | | |
308 | 311 | | |
309 | 312 | | |
| |||
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
326 | | - | |
| 329 | + | |
327 | 330 | | |
328 | 331 | | |
329 | 332 | | |
| |||
0 commit comments