reflex/reflex/ivars
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 add var_operation and move some operations to the new style (#3841) 2024-09-03 11:39:05 -07:00
base.py Dynamic route vars silently shadow all other vars (#3805) 2024-09-11 09:43:18 -07:00
function.py Use old serializer system in LiteralVar (#3875) 2024-09-10 11:43:37 -07:00
number.py Use old serializer system in LiteralVar (#3875) 2024-09-10 11:43:37 -07:00
object.py Use old serializer system in LiteralVar (#3875) 2024-09-10 11:43:37 -07:00
sequence.py Use old serializer system in LiteralVar (#3875) 2024-09-10 11:43:37 -07:00