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
[labs/react] __forwardedRef is being minified in prod builds #3211
This should mean that user refs are broken, but we have a ref test, so we need to check our coverage here.
We can prevent the mangling either by adding '__forwardedRef' to our global reserved property names, or by setting Terser's keep_quoted option to true.
Reproduction
Run the react tests
Workaround
none
Is this a regression?
No or unsure. This never worked, or I haven't tried before.
Actually, it's not really a problem that __forwardedRef is minified. It's a property name entirely internal to the component. The only problem is that filtering it by string literal isn't working, so it's being passed to createElement().
Comment for better searchability because it took me quite a lot of hours to find this, only to find that this wasn't the cause of my issues - just updating Shoelace style caused this to be updated as well as cause the real problem.
Activity
justinfagnani commentedon Aug 15, 2022
Actually, it's not really a problem that
__forwardedRefis minified. It's a property name entirely internal to the component. The only problem is that filtering it by string literal isn't working, so it's being passed tocreateElement().mjaggard commentedon Aug 16, 2022
Comment for better searchability because it took me quite a lot of hours to find this, only to find that this wasn't the cause of my issues - just updating Shoelace style caused this to be updated as well as cause the real problem.
React
Invalid attribute name:
_$Gl