Fix pc.html using state vars (#1177)

This commit is contained in:
Nikhil Rao 2023-06-09 12:16:20 -07:00 committed by GitHub
parent 76a64bce1a
commit 5712591bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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