Skip to content

Pagination raise NG0956 #6807

@fchiumeo

Description

@fchiumeo

Bug description:
Pagination triggers an angular warning when changing pages.
NG0956 (The configured tracking expression (track by identity) caused re-creation of the entire collection of size 5. This is an expensive operation requiring destruction and subsequent creation of DOM nodes, directives, components etc. Please review the "track expression" and make sure that it uniquely identifies items in a collection. Find more at https://v21.angular.dev/errors/NG0956)

Adding the .number would solve the problem
https://github.com/valor-software/ngx-bootstrap/blob/development/src/pagination/pagination.component.html#L24

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 21.2.0

Angular: lastest

Bootstrap: lastest

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions