mirror of
https://github.com/millionco/react-doctor.git
synced 2026-09-14 20:00:24 +08:00
2f36d7de9d
Extends isStaticStyleValue to recognize ConditionalExpressions where both the consequent and alternate are static values. This reduces false positives for cases like 'hasHeader ? 0 : 16' where the condition may change but both values are fixed literals or constants. The rule's concern is unpredictable runtime values like keyboardHeight that cause jarring visual jumps. A toggle between two static values is fundamentally different and more predictable. Fixes #1785 Co-authored-by: Skosh <skoshx@users.noreply.github.com>