Skip to content

accessorFn called when loading UI with empty data crashes tableΒ #523

@KubiGR

Description

@KubiGR

mantine-react-table version

2.0.0-beta.9, 1.3.4

react & react-dom versions

18.3.1

Describe the bug and the steps to reproduce it

When using the isLoading (or any other loading UI option) and the data is empty, if you use accessorFn with nested properties you get an error that crashes the table.

You can reproduce the problem by following the demo at Loading UI (https://www.mantine-react-table.com/docs/guides/async-loading#loading-demo) and using an accessorFn

I have a stackblitz here https://stackblitz.com/edit/github-vq95pemy?file=src%2FTS.tsx

Minimal, Reproducible Example - (Optional, but Recommended)

https://stackblitz.com/edit/github-vq95pemy?file=src%2FTS.tsx

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

No, because I do not know how

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

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