Skip to content

Feature Request: add support for an EOF callback  #80

Open
@lfarrel6

Description

@lfarrel6

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.

Metadata

Metadata

Assignees

Labels

A-outputOutput displayedE-featureFeature requestI-apiInternal API changeO-dynamicDynamic outputX-api-addAddition to the external api; No risk of downstream breakage

Projects

Status

Todo ✔️

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions