def _var_state(self) -> str:
        """Compat method for getting the state.

        Returns:
            The state name associated with the var.
        """
        var_data = self._get_all_var_data()
        return var_data.state if var_data else ""
Compat method for getting the state.

        Returns:
            The state name associated with the var.
        
reflex/vars/base.py