Skip to content

[Compiler Bug]: Destructure component props caused Compilation skipped because existing memoization could not be preserved #34313

@imteammy

Description

@imteammy

What kind of issue is this?

  • React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
  • babel-plugin-react-compiler (build issue installing or using the Babel plugin)
  • eslint-plugin-react-compiler (build issue installing or using the eslint plugin)
  • react-compiler-healthcheck (build issue installing or using the healthcheck script)

Link to repro

https://playground.react.dev/#N4Igzg9grgTgxgUxALhAgHgBwjALgAgDMoA7OXASwhPwFVMBlBPAMQoQBsATACmAB0a+AHSjMMCJjCCAvgEp8AoXGpgCS-JvxQwzZIu26YAYQhcE+GQBpBmmfgC8hhEzBgqJHnIDcg2-hUSNXwuCjAAQwAjDgQuR3xxSTBhGARwrgB5Eg4AT18Sf0Dg80JwqA5cADVwjigEMHidBABZBABbCB4vRwA+fABzBFwAEQRS8twWCTbq2oQeRKlhErKK2bqwK2cTMwQ5LYBtReSVifX6raad8wBdOT9lVQI2oYALMwanJpYcNr5-TSpSAcABuenwanCJC44RgXAYcFe7XCACV6hBQcweBRKghoTgEUi2uF9gCQmNVlUahsbEJNKEItFYrS7D4HpoigQwgBRUIEJzHZYUs7U+r4ACEThI5Q4+Q5TyIvzYnC4n3waPC5GETVaHS6CgcfUGVTxXBwyu4YD4+B5fMs+3wB1tFFwd3y-lSuFgNB4ZIAPD8YG1FKJhC9cO9VTIemTNH7muFMBbVRlMJRVPhJOmgg5gIQlexLfYAPQxun4P3FwNtMuaNkkGQPEAyIA

Repro steps

Destructure component props caused Compilation skipped

babel-plugin-react-compiler version 19.1.0-rc.2 work fine

Is this the expected outcome or not?

Repo

Pass

Fail

How often does this bug happen?

Every time

What version of React are you using?

19.1.1

What version of React Compiler are you using?

0.0.0-experimental-81466cb-20250822

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugType: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions