Skip to content

View Transitions break table and/or collection sorting #8220

Open
@mhornbacher

Description

@mhornbacher

Provide a general summary of the issue here

Since NextJS 15.3-canary.0 sorting a table causes a application crash if viewTransitions are enabled

I believe this is a ReactJS issue. However it is curious enough that it seems worthwhile to inform you guys about it as well. Hopefully this is just a curiosity :)

See vercel/next.js#79069 for detailed breakdown

🤔 Expected Behavior?

The table should sort with or without view transitions enabled in react

😯 Current Behavior

If view transitions are enabled. The react logic for rendering the newly sorted table fails catastrophically

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

  1. Clone https://github.com/mhornbacher/nextjs-view-transitions-bug and install the dependencies
  2. Start the application in dev mode (next dev)
  3. Visit the application at localhost:3000 (or whatever port it starts up on
  4. Press on any header row to change the sorting order (either the column or descending)
  5. See the error (see below for details)
  6. Change experimental.viewTransition to false in next.config.ts
  7. Try again and see the behavior is gone

Version

1.8.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS

🧢 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