qwik icon indicating copy to clipboard operation
qwik copied to clipboard

State is not reactive when compared

Open jweb89 opened this issue 1 year ago • 3 comments

Qwik Version

0.12.0-dev20221024094026

Operating System (or Browser)

All

Node Version (if applicable)

v16.14.2

Which component is affected?

Qwik Runtime

Expected Behaviour

State should be reactive even when compared against a string or used in a ternary expression

Actual Behaviour

State is not reactive when compared against a string or used in a ternary. Probably some other comparison operators as well

Additional Information

Reproduction: https://stackblitz.com/edit/qwik-starter-zoe7dt?file=src%2Fcomponents%2Ftest%2Findex.jsx

jweb89 avatar Oct 26 '22 13:10 jweb89

Got a fix! thanks a lot for catching this one, added a new e2e test too!

manucorporat avatar Oct 27 '22 00:10 manucorporat

Awesome, thanks!

jweb89 avatar Oct 27 '22 17:10 jweb89