Skip to content

Prohibit pagination item rendering function use #102

@devnatan

Description

@devnatan

The paged item rendering function should not be used as the method of updating a paginated item is already a rendering function in itself. Therefore, using the item render function inside a render function which is already computed is incorrect.

@Override
protected final void onItemRender(PaginatedViewSlotContext<...> render, ViewItem item, T value) {
    item.onRender(...); // don't do it!!
}

An exception should be thrown if this is found, when released version with this implementation there should be an option for the user to disable this check since there can be several views using this type of function, so it should take some time for the user to adapt the change.

Metadata

Metadata

Assignees

Labels

api-designMajor changes to the high-level API

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions