Skip to content

DataTable: Warnings #2 #126

Description

@janus-reith

Type: minor

I use DataTable on multiple routes, and it seems the warnings only occur the first time I load a table on any of these with bulk actions using a Dialog and filters offering multi-select. They don't appear on the orders table as it used neither actions nor filters.

Failed prop type: Invalid prop actionMenuProps of type object supplied to ForwardRef(DataTable), expected an array.
in ForwardRef(DataTable) (created by ProductTable)

Nope, object is correct as we might have a child componenent/label and other props, the options array is inside that object.

Warning: Each child in a list should have a unique "key" prop.
Check the render method of ForwardRef(DataTable). See https://fb.me/react-warning-keys for more information.
I believe this is because of this:

RadioGroup is the outer component and needs a key.

Warning: Each child in a list should have a unique "key" prop.
Check the render method of ForwardRef(ActionMenu). See https://fb.me/react-warning-keys for more information.

I believe this is because of this:

if (confirmTitle || confirmMessage) {

ConfirmDialog is the outer component and needs a key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions