Skip to content

Resolve CE-1966 "Fix use pagination hook"

Christina Jenks requested to merge CE-1966-fix-use-pagination-hook into main

DRAFT: Going to test that this update is compatible with e.g. template (deploy should be already compatible) Confirmed good in template-ui via @ess-ics/ce-ui-common@1.0.0-ff816023, will create MR dependent on here...

  • Replaces usePagination with fixed version that doesn't cause infinite render loops
  • Breaking! Deprecates the onPage callback, renames it to setPagination (hence major version increment)
  • New: exposes setPage, setLimit, setTotalCount individually to support custom use-cases

Closes CE-1966

Edited by Christina Jenks

Merge request reports