We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03ed44c commit 234c666Copy full SHA for 234c666
shinywidgets/_render_widget_base.py
@@ -71,7 +71,10 @@ def __init__(
71
72
async def render(self) -> Jsonifiable | None:
73
with WidgetRenderContext(self.output_id):
74
- value = await self.fn()
+ return await self._render()
75
+
76
+ async def _render(self) -> Jsonifiable | None:
77
+ value = await self.fn()
78
79
# Attach value/widget attributes to user func so they can be accessed (in other reactive contexts)
80
self._value = value
0 commit comments