Skip to content

Multiple server calls when sorting is enabled #1356

Closed
@dor-squadded

Description

@dor-squadded

Describe the bug
Multiple server calls when sorting is enabled.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://gridjs.io/docs/examples/server-side-sort
  2. Open dev tools on the network tab.
  3. Use the sort on any column.
  4. See that the calls to the server are doubled when sorting.
  5. Comment out the sort: false on the images column.
  6. Use the sort on any column.
  7. See that the calls to the server are tripled.

Expected behavior
The server calls should happen only once, independant of the number of column you can sort.

Screenshots
1.
image
2.
image

Desktop (please complete the following information):

  • OS: Windows 11.
  • Browser: Chrome
  • Version: 113

Additional context
This can be problematic when dealing with a table that has 5+ columns that need to be sorted. The requests will be 5X more than needed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions