#Load data once component in view

1 messages · Page 1 of 1 (latest)

opaque sorrel
#

Hi everyone,

I have a component that loads a lot of data, but it's at the bottom of the page, so not visible when first loading the page

I only want to load the data once that component is in view
What is the idiomatic way to do this in Remix.run

teal furnace
opaque sorrel
#

from what I understand, the above options do return the data in different ways and different strategies
Can I only load the data once user scrolls down the page and the component that uses the data becomes in view?

teal furnace
#

yes, use the useFetcher to fetch it client-side then