minus
minus copied to clipboard
Feature Request: add support for an EOF callback
Feature description
I'd like to use minus to display paginated data that is pulled from an API. Ideally, the data would be paginated as the user scrolls through the logs, in a similar manner to an infinite scroll component.
Proposed Solution
An additional config on the PagerState, similar to the exit callback vectors. The callback should be fired when the user reaches the end of the currently available data.
Alternative
There's no clear alternative — while minus supports streaming data in, there's no obvious way to fetch more data at the rate that the user is consuming.
I am happy to contribute the changes to include this in the library.
Thanks for filling the feature request.
Currently I am busy incorporating a native user input declaration system inside ninus so it might take a while for me to work on this. If you want to help, you're are very welcome to file a PR.
For any help, join our Matrix or Discord rooms. Thanks again.
Happy to contribute 😄 I'll reference this issue in the PR
Hey I just wanted to ping you whether you are ready with your PR for this issue. I am planning for a small release so if your PR is ready I will include it in the the release.
Sorry, haven't gotten around to wrapping up the PR. Will hopefully get to it in the next week!