improve dynamic route vars, no need to compute deps (#4551)

This commit is contained in:
benedikt-bartscher 2025-01-03 22:00:48 +01:00 committed by GitHub
parent 0d9b2c75e4
commit 879dcbd1bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1193,6 +1193,8 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow):
continue
dynamic_vars[param] = DynamicRouteVar(
fget=func,
auto_deps=False,
deps=["router"],
cache=True,
_js_expr=param,
_var_data=VarData.from_state(cls),