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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
for vars with type of
dictorlistI 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