Skip to content

Commit

Permalink
docs(examples): fix bug in Vue infinite scroll example
Browse files Browse the repository at this point in the history
This fixes a ref not being accessed with it's `'value` accessor, causing a boolean check to always be truthy.
  • Loading branch information
BrianMitchL committed Sep 10, 2024
1 parent 661a956 commit 3953ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/vue/infinite-scroll/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ watchEffect(() => {
if (
lastItem.index >= allRows.value.length - 1 &&
hasNextPage &&
hasNextPage.value &&
!isFetchingNextPage.value
) {
fetchNextPage()
Expand Down

0 comments on commit 3953ceb

Please sign in to comment.