Skip to content

odd array collapse behaviour with groupArraysAfterLength  #363

@clausreinke

Description

@clausreinke

Consider an object containing an array: {ARRAY: [...Array(n)], ...otherfields}, with collapse={1}.

  • as long as n is smaller than groupArraysAfterLength, ARRAY collapses as expected
  • as soon as n ist larger than groupArraysAfterLength, ARRAY is expanded (to collapsed groups)

I would have expected ARRAY to remain collapsed, no matter its length, with groupArraysAfterLength only taking effect after ARRAY is expanded (manually, or by raising collapse to 2).

With a large number of groups in ARRAY, this can be a problem, as there seems to be no way to really collapse ARRAY (short of setting groupArraysAfterLength={0}, which collapses ARRAY but leads to an unwieldy view when ARRAY is expanded).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions