Infinite scrolling with Inertia #4765
Unanswered
shankiflang
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys!
I'm trying to test inertia v2 Infinite scrolling and i'm not able to get it work. Here is things I see :
<WhenVisible>
at the end of mymap()
to handle reloading new elements. As it is at the end of the file, I don't have anything to pass in children but children is forced. I set<></>
, is it ok?<WhenVisible>
force to have adata
as props andparams
is optional, but If I set both, params is ignored. If I only setdata
, my backend doesn't receive any params/props. How can I handle the cursor for my pagination? I ended up using :But
page
is never updated. react update well, props is update but params always push the same number.Is this something I'm missing, or is my code the problem?
There's an issue on the Inertia repo that talks about this: inertiajs/inertia#2025
Beta Was this translation helpful? Give feedback.
All reactions