possibly null expression inside v-if guard #169
Replies: 3 comments 2 replies
-
Any idea how to fix it? I have same problem with v-if. |
Beta Was this translation helpful? Give feedback.
-
Not great, but another workaround for your sample could be using the
|
Beta Was this translation helpful? Give feedback.
-
One more solution I used instead. Instead of
Then you don't have to sprinkle |
Beta Was this translation helpful? Give feedback.
-
I notice that expressions inside
v-if
are rendered one more time asv-if
condition becomesfalse
, and this is quite bothering as I can't then usev-if
as a null guard like I can in Vue. Here is a minimal example; an error will shown in the console after 3 seconds.See this codepen.
Beta Was this translation helpful? Give feedback.
All reactions