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
{{ message }}
Repository navigation
[Compiler Bug]: "Mutating a value returned from 'useContext()', which should not be mutated" When the value is a Ref #31470
#34005 enables the flag to treat ref-like identifiers as refs by default. As long as your variable is named ref or ends in Ref (myRef etc), the compiler will treat it as a ref. Thanks again for posting!
Activity
jay-herrera commentedon Nov 10, 2024
Also applies to Event Handlers:
https://playground.react.dev/#N4Igzg9grgTgxgUxALhAgHgBwjALgAjggDswCBZATwGETcMCBeQmBAQ3tuPvVwApgAHWKCebALaYANggBKCAGbJ8wOLFbdlxKFKkBfYXoCUw4Rmx58AE0VsdBBVGJxcASxL4ACmw25akkgRuPiMVYXxCEjJ8DAlpOUV8ZigwBIU+AHIAOQgMkxFiCNZcWEK+cIj8AB4APgrK6qouHlwAOk8YCAA3VxsYfC62KSgERmBgWMkZeQU9PTrChsqq6gALVykrf2xiIIIAegWl6v2mugZ2zp6+o+XDiqMAbkNTYkdnNw81ja2IAN3gqEhIsiKQCMAYug4tNEnokvgUghmgw+GduAx8hViqVqlZXF18CRqFJXHAANZjEJJGphRYRSbxGatNQwXzwjIATQQYAyFTm+HuxAMxBAeiAA
Vansh16aug commentedon Nov 15, 2024
I see , i would like to work on it
jay-herrera commentedon Apr 17, 2025
@Vansh16aug Hey! any updates?
salomonme commentedon Apr 17, 2025
Hey! any updates?
josephsavona commentedon Jul 29, 2025
#34005 enables the flag to treat ref-like identifiers as refs by default. As long as your variable is named
refor ends inRef(myRefetc), the compiler will treat it as a ref. Thanks again for posting!