Skip to content

Commit 2a7094d

Browse files
committed
fixup memo registry
1 parent 12eca0e commit 2a7094d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

reflex/components/component.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,8 +1909,9 @@ def _register_custom_component(
19091909
TypeError: If the tag name cannot be determined.
19101910
"""
19111911
dummy_props = {
1912-
prop: Var("", _var_type=param.annotation)
1913-
for prop, param in inspect.signature(component_fn).parameters.items()
1912+
prop: Var("", _var_type=annotation)
1913+
for prop, annotation in typing.get_type_hints(component_fn).items()
1914+
if prop != "return"
19141915
}
19151916
dummy_component = CustomComponent._create(
19161917
children=[],

0 commit comments

Comments
 (0)