How to delay ScrollSeekConfiguration exit to wait 1 second before returning true? #593
Unanswered
wiktoriavh
asked this question in
Q&A
Replies: 1 comment 7 replies
-
You can't do that at the moment. A delay like the one you're thinking of can be implemented by changing the logic here. I'm open to PRs on the matter. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is a gif of me scrolling through the table, and for me, that is fast scrolling. Since I stop for a bit to move my finger up and scroll again, the items are rendering. I would like to have a delay before it returns true. I tried to create a debounce function, which in itself worked when I tried it with a simple console.log, but when I tried to implement it into the
exit
config, it doesn't work. It doesn't even wait at all and will just return false and not update.Here is the sandbox with my code: https://codesandbox.io/s/elegant-ptolemy-yiy0d1?file=/src/App.js
So the question is: How do I delay exit?
Beta Was this translation helpful? Give feedback.
All reactions