-
Notifications
You must be signed in to change notification settings - Fork 966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved load-on-pan events #690
base: master
Are you sure you want to change the base?
Conversation
Good luck with this PR. Unfortunately, @rrag didn't answer to any PR for a long time. So people ended up forking and using their own versions. |
@aleksspeaker would you recommend any fork in particular? I like this library, but the fact that it doesn't seem to be maintained is a concern. Thanks! |
Hi @payala , |
const start = head(xScale.domain()); | ||
const end = xAccessor(firstItem); | ||
const scale_start = head(xScale.domain()); | ||
const data_start = xAccessor(firstItem); | ||
// console.log(start, end, start < end ? "Load more" : "I have it"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented code should not be pushed to GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dude, this repo is dead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... and the comment isn't even part of the PR 😂
This is an initial implementation of the fix suggested in issue #688
3 new events have been added:
I have left onLoadMore unchanged for now, so that this fix wont break anything. If we go this route, I recommend deprecating it as soon as possible to make the API more consistent.
Alternatively, we break backwards compatibility and use onLoadMore for everything 😄