Skip to content

Table not rendering correctly with React Suspense #8906

@jeffijoe

Description

@jeffijoe

Provide a general summary of the issue here

When using React Suspense (client side only), the table does not render correctly. It only renders a single column from the header on first render. See CodeSandbox.

In some scenarios, this causes the following error:

Error: Cell count must match column count. Found 3 cells and 1 columns.

🤔 Expected Behavior?

The table should work with Suspense.

😯 Current Behavior

The table only renders the first column when inside a Suspense boundary that is triggered.

Image

💁 Possible Solution

No response

🔦 Context

We use Suspense to lazy-load views.

🖥️ Steps to Reproduce

  • Open the CodeSandbox.
  • Observe the last table does not render its data until it is subsequently rerendered.

Version

RAC 1.12.2

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS Tahoe

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

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