suspensive icon indicating copy to clipboard operation
suspensive copied to clipboard

[Feature]: Support lazy load `<InView />`

Open manudeli opened this issue 7 months ago • 8 comments

Package Scope

etc

Description

@suspensive/intersection to trigger fetch on view inside of window

Possible Solution

const posts = useSuspenseQuery(postsQueryOptions(...))

return posts.map((post) => (
    <Intersection fallback={<Skeleton />}>
      <Suspense fallback={<Skeleton />}>
        <SuspenseQuery {postQueryOptions(post.id)}>
          {(post) => <Post {...post} />}
        </SuspenseQuery>
      </Suspense>
    </Intersection>
  )
)

etc.

No response

manudeli avatar Jul 11 '24 08:07 manudeli