diff --git a/reflex/state.py b/reflex/state.py index 5eeed36cc..fb05d558f 100644 --- a/reflex/state.py +++ b/reflex/state.py @@ -2103,6 +2103,10 @@ def dynamic(func: Callable[[T], Component]): Returns: The dynamically generated component. + + Raises: + ValueError: If the function does not have exactly one parameter. + ValueError: If the function does not have a type hint for the state class. """ number_of_parameters = len(inspect.signature(func).parameters)