Detect Binary Expressions etc. as dynamic values that can never be null
ish.
#735
Labels
enhancement
New feature or request
null
ish.
#735
StyleX now applies both inline styles for variables and the static classNames associated with dynamic styles conditionally.
This is done to account for cases where the dynamic value may end up being
null
ish.However, there are certain expressions that are statically know to never be
null
ish. Detect these expressions and remove the ternary expressions that are used for the dynamic styles they're used for.An incomplete list of known non-null expressions:
+
expression-
expression+
/-
expressionThe text was updated successfully, but these errors were encountered: