reflex/tests/integration/tests_playwright
Masen Furer a2243190ff
[ENG-4326] Async ComputedVar (#4711)
* WiP

* Save the var from get_var_name

* flatten StateManagerRedis.get_state algorithm

simplify fetching of states and avoid repeatedly fetching the same state

* Get all the states in a single redis round-trip

* update docstrings in StateManagerRedis

* Move computed var dep tracking to separate module

* Fix pre-commit issues

* ComputedVar.add_dependency: explicitly dependency declaration

Allow var dependencies to be added at runtime, for example, when defining a
ComponentState that depends on vars that cannot be known statically.

Fix more pyright issues.

* Fix/ignore more pyright issues from recent merge

* handle cleaning out _potentially_dirty_states on reload

* ignore accessed attributes missing on state class

these might be added dynamically later in which case we recompute the
dependency tracking dicts... if not, they'll blow up anyway at runtime.

* fix playwright tests, which insist on running an asyncio loop

---------

Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2025-01-31 16:33:30 -08:00
..
test_appearance.py enable PGH, bump pyright and fix all #type: ignore (#4699) 2025-01-28 13:11:05 -08:00
test_datetime_operations.py enable PGH, bump pyright and fix all #type: ignore (#4699) 2025-01-28 13:11:05 -08:00
test_link_hover.py enable PGH, bump pyright and fix all #type: ignore (#4699) 2025-01-28 13:11:05 -08:00
test_stateless_app.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_table.py [ENG-4326] Async ComputedVar (#4711) 2025-01-31 16:33:30 -08:00