Commit 4937cba
committed
fix: Default hasMoreResults to true while loading
The infinite scroll trigger was broken because hasMoreResults returned
undefined (falsy) when SWR data hadn't loaded yet. This prevented the
InfiniteScroll component from triggering the next fetch.
Now hasMoreResults defaults to true while isFetchingClimbs is true
(so infinite scroll works during SSR hydration), and false after loading
completes with no data.1 parent 0c88546 commit 4937cba
File tree
1 file changed
+3
-1
lines changed- packages/web/app/components/queue-control/hooks
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments