Skip to content

state-save and state-restore events for Table #850

Closed
@chrisnoden

Description

@chrisnoden

When returning to a page with a Lazy loaded DataTable that has stored it's state, there is no way to fetch the correct data from the server.

eg.
If the DataTable has remembered it's on page 5, you leave the page, return to the page later (or just hit reload on the browser) and the DataTable pagination shows you are on the remembered page 5- but the lazy loading of the remote data has loaded the default results (page 1).

I propose an event is emitted by the DataTable once it has retrieved the state. The state params should be included in the emitted parameters (same as the onPage event). IF there is no stored state, the params can either be null (leaving it for the implementation to establish the default) or they can return the defaults as defined by the props.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: EnhancementIssue contains an enhancement related to a specific component. Additional functionality has been addvue2-portable

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions