Update links to /docs/library/dynamic-rendering/foreach/ (#3609)

This commit is contained in:
Masen Furer 2024-07-02 13:41:26 -07:00 committed by GitHub
parent b742afb27f
commit df7d7b0ba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@ class Foreach(Component):
raise ForeachVarError(
f"Could not foreach over var `{iterable._var_full_name}` of type Any. "
"(If you are trying to foreach over a state var, add a type annotation to the var). "
"See https://reflex.dev/docs/library/layout/foreach/"
"See https://reflex.dev/docs/library/dynamic-rendering/foreach/"
)
if (
@ -95,7 +95,8 @@ class Foreach(Component):
if len(params) == 0 or len(params) > 2:
raise ForeachRenderError(
"Expected 1 or 2 parameters in foreach render function, got "
f"{[p.name for p in params]}. See https://reflex.dev/docs/library/layout/foreach/"
f"{[p.name for p in params]}. See "
"https://reflex.dev/docs/library/dynamic-rendering/foreach/"
)
if len(params) >= 1: