Skip to content

Commit

Permalink
Import event constructor in custom components (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
picklelo committed Jan 12, 2023
1 parent 7f0aa4f commit 98e9edd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pynecone/compiler/compiler.py
Expand Up @@ -81,7 +81,10 @@ def _compile_components(components: Set[CustomComponent]) -> str:
Returns:
The compiled components.
"""
imports = {"react": {"memo"}}
imports = {
"react": {"memo"},
f"/{constants.STATE_PATH}": {"E"},
}
component_defs = []

# Compile each component.
Expand Down

0 comments on commit 98e9edd

Please sign in to comment.