reflex/reflex/utils
benedikt-bartscher 63bf1b8817
Dynamic route vars silently shadow all other vars (#3805)
* fix dynamic route vars silently shadow all other vars

* add test

* fix: allow multiple dynamic routes with the same arg

* add test for multiple dynamic args with the same name

* avoid side-effects with DynamicState tests

* fix dynamic route integration test which shadowed a var

* fix darglint

* refactor to DynamicRouteVar

* old typing stuff again

* from typing_extensions import Self

try to keep typing backward compatible with older releases we support

* Raise a specific exception when encountering dynamic route arg shadowing

---------

Co-authored-by: Masen Furer <m_github@0x26.net>
2024-09-11 09:43:18 -07:00
..
__init__.py [REF-99] Add first version of CLI for hosting service (#1810) 2023-10-21 13:09:56 -07:00
build.py Make .web configurable with REFLEX_WEB_WORKDIR (#3462) 2024-06-17 16:17:00 -04:00
codespaces.py Add a link to backend in connection error (#3044) 2024-06-27 12:20:03 -07:00
compat.py [REF-3266] Check for pydantic v1 outside of try/except (#3643) 2024-07-10 12:28:39 -07:00
console.py dedupe config overrides (#3600) 2024-07-03 17:34:22 +02:00
exceptions.py Dynamic route vars silently shadow all other vars (#3805) 2024-09-11 09:43:18 -07:00
exec.py Remove watchfiles and watchdog [REF-2133] [REF-3694] (#3862) 2024-09-02 09:38:17 -07:00
export.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
format.py Use old serializer system in LiteralVar (#3875) 2024-09-10 11:43:37 -07:00
imports.py [REF-3228] implement LiteralStringVar and format/retrieval mechanism (#3669) 2024-07-17 17:01:27 -07:00
lazy_loader.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
net.py [REF-3633] [main] Introduce a workaround for enterprise users who get stuck with httpx.get SSL (#3847) 2024-08-28 09:33:31 -07:00
path_ops.py Update find_replace (#3886) 2024-09-04 16:11:33 -07:00
prerequisites.py [REF-3570] Remove deprecated REDIS_URL syntax (#3892) 2024-09-05 14:37:07 -07:00
processes.py migrate deprecated connections to net_connections (#3641) 2024-07-11 11:21:34 -07:00
pyi_generator.py Use old serializer system in LiteralVar (#3875) 2024-09-10 11:43:37 -07:00
redir.py reflex init --ai fixups (#3691) 2024-07-19 14:05:53 -07:00
registry.py use different registry when in china, fixes #3700 (#3702) 2024-08-12 03:06:34 -07:00
serializers.py Use old serializer system in LiteralVar (#3875) 2024-09-10 11:43:37 -07:00
telemetry.py Suppress runtime warnings (#3354) 2024-05-21 12:34:25 -07:00
types.py Dynamic route vars silently shadow all other vars (#3805) 2024-09-11 09:43:18 -07:00