Commit 1720e08
committed
fix: Default hasMoreResults to true until data is loaded
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.
When using SSR initialClimbs, the client-side SWR fetch hasn't completed
yet, so hasMoreResults was undefined. Now it defaults to true until
we have actual data to determine the correct value.1 parent 0c88546 commit 1720e08
File tree
1 file changed
+2
-1
lines changed- packages/web/app/components/queue-control/hooks
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments