Skip to content

Override internal table state (beta 26) #1704

@afrz

Description

@afrz

Describe the bug

Table Options API state.selectedRowPaths: Set<RowPathKey> does not work.

My goal is to provide selection through parent component (making react-table controlled)
but internal state override is not taken into account.

To Reproduce

  1. Go to CodeSandBox
  2. Initial state is OK (5th row is selected)
  3. State override is NOK (3th row not selected)

Expected behavior

When provided, Table Options API state should override internal state.

Desktop (please complete the following information):

  • OS : Windows
  • Browser : Chrome
  • Version : 78

Additional context

BETA react-table 26

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