reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Handle internal computed vars

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

We should be able to prefix computed vars with an underscore to make them internal computed vars.

class State(pc.State):
    """The app state."""

    @pc.var
    def _now(self):
        return datetime.now()

picklelo avatar Jun 07 '23 01:06 picklelo