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
Thinking out loud here on possible solution, ofc there could be problems with it but still it's better to initiate a thought process on it.
From my assumption firstThatWorks may receive 2 types of values either variables or absolute values.
I have not seen code but 2 things might change
firstThatWorks method: to have generic return type based on input. So it will make sure that scenarios like above are solved and it won't harm properties which don't expect strict unions ( like string | number )
eslint valid-styles: we could have a case where position may receive value in form of variable. In that case it's a valid situation but still as a code we are unsure so maybe we can provide warning that it may not be the proper value or bypass variables from it.
Describe the issue
when using
stylex.firstThatWorks
on a property, I'm seeing ESLint errors for@stylexjs/valid-styles
e.g.
Expected behavior
using the above code should work with ESLint Rule
Steps to reproduce
Test case
No response
Additional comments
No response
The text was updated successfully, but these errors were encountered: