layer5io / layer5io/sistent

useTableState: A reusable hook for server-side table state management

Open
#1,668 4 comments 0 reactions 1 assignee View on GitHub

@Salmaan-M is already working on this.

Since Jun 30, 2026.

component/components
Dominant language
TypeScript
Stars
137
Forks
239
Avg merge
4d 14h
Merged PRs (30d)
5

Description

Current Behavior

Across Meshery UI, every data table page independently declares the same set of useState calls to manage server-side pagination, search, and sort state — typically page, pageSize, search, and sortOrder. Some pages add filter state on top. This results in 4–8 identical useState lines duplicated across 8+ files :-

Expected Behavior

A reusable, framework-agnostic useTableState hook in Sistent that:

  • Manages page, pageSize, search, sortOrder, and optional custom filters state
  • Provides setter functions (setPage, setPageSize, setSearch, setSortOrder)
Environment

Contributor Guides and Resources

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.