You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Compiler Bug]: new mutation aliasing model incorrectly detects a frozen value mutation when mutating a set created via passing the set constructor a frozen value #33614
In an event handler, create a Set by passing the Set constructor a frozen value like a piece of state or a prop (i.e. const derivedSet = new Set(frozen))
What kind of issue is this?
Link to repro
https://playground.react.dev/#N4Igzg9grgTgxgUxALhAgdgQwEYBsEByCA7gLJQAumFAlhOgIK42Zg3oDmpEAJgrsgowoCADrpxNALYAHCDAoACYIqhgEAZSoUEigL6KAZjAhTFokDASY4FC5NnylK8rlob+CW-qMmzFgDoAgHooGmCpKDcadXxbCKjaWK87EHFxBAAPOQVFOHowJQYZGUUAXkUACgBKcoA+ZXFFPIKlAG1k2wQeABpFdQoPOJ0eAF1y1XUtagRK9BJFDyUAHn6hdg5FBprqppb0QsV6IZTugGEAC0xOXQrKgDdMXBFkNZgN2rKG4D3m-IOlPNiCcujwJkDFggKJVOiNduhms0aIYqkCQSMAlcwA8niJqrUfgjEc00Z5QQE+PgdDjngh4cSDPx1I0icTScNugFMDweDS8b99AKBujunMSCKePTBRIiVYKLAEctXO4yUpYd0ysB1TwDMdVecrjdNXqOTxLtcOAgDME6uI9OIQHogA
Repro steps
const derivedSet = new Set(frozen))How often does this bug happen?
Every time
What version of React are you using?
19.1
What version of React Compiler are you using?
6c7b1a1