Loading via infinite scroll? #1611
Unanswered
panthro100
asked this question in
Help
Replies: 1 comment
-
I know this is an old post, but I ran into this issue recently. The way I solved it is by using You update the state of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posts are passed in via:
Then set to a
localPosts
var via:Then, new posts are loaded via infinite scroll
In
onSuccess
I just am logging things for now, but there is an issue.localPosts
logs rows 1-20.posts
also logs rows 1-20. This should log rows 21-40. It is likeonSuccess
is running before the newposts
prop has had a chance to filter down.Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions