default external to None
This commit is contained in:
parent
f0f6566489
commit
ea4ac23633
@ -704,7 +704,7 @@ def server_side(name: str, sig: inspect.Signature, **kwargs) -> EventSpec:
|
|||||||
|
|
||||||
def redirect(
|
def redirect(
|
||||||
path: str | Var[str],
|
path: str | Var[str],
|
||||||
external: Optional[bool] = False,
|
external: Optional[bool] = None,
|
||||||
is_external: Optional[bool] = False,
|
is_external: Optional[bool] = False,
|
||||||
replace: Optional[bool] = False,
|
replace: Optional[bool] = False,
|
||||||
) -> EventSpec:
|
) -> EventSpec:
|
||||||
@ -719,7 +719,7 @@ def redirect(
|
|||||||
Returns:
|
Returns:
|
||||||
An event to redirect to the path.
|
An event to redirect to the path.
|
||||||
"""
|
"""
|
||||||
if external:
|
if external is not None:
|
||||||
console.deprecate(
|
console.deprecate(
|
||||||
"The `external` prop in `rx.redirect`",
|
"The `external` prop in `rx.redirect`",
|
||||||
"use `is_external` instead.",
|
"use `is_external` instead.",
|
||||||
|
Loading…
Reference in New Issue
Block a user