diff --git a/pynecone/app.py b/pynecone/app.py index 8042aad21..67c2c07a0 100644 --- a/pynecone/app.py +++ b/pynecone/app.py @@ -27,6 +27,7 @@ from pynecone.base import Base from pynecone.compiler import compiler from pynecone.compiler import utils as compiler_utils from pynecone.components.component import Component, ComponentStyle +from pynecone.components.layout.fragment import Fragment from pynecone.config import get_config from pynecone.event import Event, EventHandler, EventSpec from pynecone.middleware import HydrateMiddleware, Middleware @@ -291,6 +292,9 @@ class App(Base): ) from e raise e + # Wrap the component in a fragment. + component = Fragment.create(component) + # Add meta information to the component. compiler_utils.add_meta( component, title=title, image=image, description=description, meta=meta diff --git a/scripts/integration.sh b/scripts/integration.sh index 8bc04d17c..83d715634 100644 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -15,7 +15,7 @@ while ! nc -z localhost 3000 || ! lsof -i :8000 >/dev/null; do echo "Error: Server process with PID $pid exited early" break fi - if ((wait_time >= 500)); then + if ((wait_time >= 600)); then echo "Error: Timeout waiting for ports 3000 and 8000 to become available" exit 1 fi