Update links to /docs/library/dynamic-rendering/foreach/ (#3609)
This commit is contained in:
parent
b742afb27f
commit
df7d7b0ba0
@ -66,7 +66,7 @@ class Foreach(Component):
|
|||||||
raise ForeachVarError(
|
raise ForeachVarError(
|
||||||
f"Could not foreach over var `{iterable._var_full_name}` of type Any. "
|
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). "
|
"(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 (
|
if (
|
||||||
@ -95,7 +95,8 @@ class Foreach(Component):
|
|||||||
if len(params) == 0 or len(params) > 2:
|
if len(params) == 0 or len(params) > 2:
|
||||||
raise ForeachRenderError(
|
raise ForeachRenderError(
|
||||||
"Expected 1 or 2 parameters in foreach render function, got "
|
"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:
|
if len(params) >= 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user