diff --git a/examples/oauth_example.py b/examples/oauth_example.py index 453d627..804c02b 100644 --- a/examples/oauth_example.py +++ b/examples/oauth_example.py @@ -60,6 +60,7 @@ def user(self): # -> dict or empty dict return self._rootstate.get(OAUTH_SESSION_NAME,{}) def render(self): # dynamic rendering + self.clear() self+= self.title + self.btn if self.user: self.title.set(self.user['name']) @@ -83,6 +84,8 @@ def init(self): self.oa = TagOAuth(self.state) def render(self): # dynamic rendering + self.clear() + self += self.oa self += f"You are {self.oa.user.get('name') or 'unknown'}"