Skip to content

Commit

Permalink
fix: feedEntries loadMore
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Aug 21, 2024
1 parent 7158fda commit 988f369
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/web/src/routes/(dashboard)/feeds/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
import { Navbar } from "$lib/components/navbar"
import { FeedEntriesService } from "$lib/state/feedEntries.svelte"
// import { FeedsService } from "$lib/state/feeds.svelte"
import { useInterface } from "$lib/state/ui.svelte"
import { getContext } from "$lib/utils/context"
import { documentVisibilityStore } from "$lib/utils/documentVisibility"
import { invalidateAll } from "$app/navigation"
import { page } from "$app/stores"
// const feedsService = getContext(FeedsService)
const feedEntriesService = getContext(FeedEntriesService)
let innerWidth = $state(1000)
Expand Down Expand Up @@ -122,7 +120,7 @@
}
if (searchResults.data.length) {
feedEntriesService.append(searchResults.data)
feedEntriesService.add(searchResults.data)
}
if (feedEntriesService.feedEntries.length >= searchResults.count) {
Expand Down

0 comments on commit 988f369

Please sign in to comment.