Skip to content

Commit 98e9edd

Browse files
authored
Import event constructor in custom components (#249)
1 parent 7f0aa4f commit 98e9edd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pynecone/compiler/compiler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ def _compile_components(components: Set[CustomComponent]) -> str:
8181
Returns:
8282
The compiled components.
8383
"""
84-
imports = {"react": {"memo"}}
84+
imports = {
85+
"react": {"memo"},
86+
f"/{constants.STATE_PATH}": {"E"},
87+
}
8588
component_defs = []
8689

8790
# Compile each component.

0 commit comments

Comments
 (0)