reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Support unpacking for computed vars

Open ElijahAhianyo opened this issue 2 years ago β€’ 0 comments

we should be able to support doing something like this:

class State(rx.State):
    @rx.var
    def values()-> List[str]: # or replace with Tuple
       return [1, 2, 3, 4]
    
 def index():
    a, b, c, d = State.values
    ...

ElijahAhianyo avatar Jul 11 '23 23:07 ElijahAhianyo