What is the best practice to manage data for infinite scrolling list. #2315
Unanswered
LvChengbin
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Thanks for opening a discussion. Would anyone be interested in the challenge? |
Beta Was this translation helpful? Give feedback.
0 replies
-
My idea: const pageAtom = atom(0);
const dataAtom = atom(async => {
// load data
})
const nextAtom = atom(null, (get, set) => set(pageAtom, value => value + 1))); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm a newbie of using
jotai
, thank you for your great job.I want to create an hook for infinite scrolling data management, which I hope it can be used like this:
I think it's a common feature, but I can't find out a clear way to implement it.
Beta Was this translation helpful? Give feedback.
All reactions