How to properly use a computed boolean? #8166
Replies: 1 comment
-
Ah, never mind. The docs say:
So in the example it should be |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This doesn't work:
Playground
You can toggle a toggle by clicking Toggle.
When clicking Check, it will always show "opposite_of_toggle is: true".
I would instead expect it to show "opposite_of_toggle is: false" when the toggle is on.
I'm guessing this has something to do with the computed proxy being truthy or something like that? Or I simply made a stupid typo. :)
Beta Was this translation helpful? Give feedback.
All reactions