handle var at top level
This commit is contained in:
parent
53b98543cc
commit
88cfb3b7e2
@ -560,7 +560,11 @@ def compile_unevaluated_page(
|
||||
"""
|
||||
# Generate the component if it is a callable.
|
||||
component = page.component
|
||||
component = component if isinstance(component, Component) else component()
|
||||
component = (
|
||||
component
|
||||
if isinstance(component, Component)
|
||||
else (Fragment.create(component) if isinstance(component, Var) else component())
|
||||
)
|
||||
|
||||
# unpack components that return tuples in an rx.fragment.
|
||||
if isinstance(component, tuple):
|
||||
|
Loading…
Reference in New Issue
Block a user