Repository navigation
Commit ea1bf86
committed
fix(data): clear refreshing when an earlier page errors and retry it on loadMore
When a non-last page expired and its reload failed, holes stayed true
(the page was not ready and not last), so refreshing never cleared.
loadMore only inspected the last page, leaving no recovery path.
- Only set holes for pending (actively loading) non-last pages, not
errored ones, so refreshing correctly reflects in-flight loads.
- Have loadMore retry the earliest errored page before looking at the
last, so a failed earlier page recovers on the next loadMore call.1 parent 3a2748e commit ea1bf86
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
| |||
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
110 | | - | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
0 commit comments