How about add "isEmpty()" to vars ? #3080
yellowbean
announced in
Ideas
Replies: 1 comment
-
If you just use the list/dict var directly in the cond does it not work? |
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
-
for vars with type of
dict
orlist
I usually to create extra variable to serve as flag to display a component or not .
class FormState(rx.State):
Then in the UI component..
Would it be better off to save noise code by adding a method like
isEmpty()
to the vars ?Then in the UI component..
Beta Was this translation helpful? Give feedback.
All reactions