Skip to content

Commit

Permalink
Ensure Views can be updated inplace
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 7, 2023
1 parent 6e68661 commit ce5a303
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lumen/views/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ def _valid_keys_(cls) -> List[str] | None:
def __panel__(self) -> Viewable:
if not self._initialized:
self.update()
return pn.panel(pn.bind(lambda e: self.panel, self.param.rerender))
bound = pn.param.ParamFunction(pn.bind(lambda e: self.panel, self.param.rerender))
bound._internal = False
return bound

def _update_loading(self, event):
if hasattr(self._panel, 'loading'):
Expand Down

0 comments on commit ce5a303

Please sign in to comment.