reflex/integration
Masen Furer 0845d2ee76
[REF-3184] [REF-3339] Background task locking improvements (#3696)
* [REF-3184] Raise exception when encountering nested `async with self` blocks

Avoid deadlock when the background task already holds the mutation lock for a
given state.

* [REF-3339] get_state from background task links to StateProxy

When calling `get_state` from a background task, the resulting state instance
is wrapped in a StateProxy that is bound to the original StateProxy and shares
the same async context, lock, and mutability flag.

* If StateProxy has a _self_parent_state_proxy, retrieve the correct substate

* test_state fixup
2024-07-23 15:28:38 -07:00
..
init-test [REF-2764] dep update 0.5.0 (#3245) 2024-05-07 15:15:52 -07:00
shared upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
__init__.py Client-side storage / State integration (#1629) 2023-08-30 12:43:29 -07:00
conftest.py fix screenshot filenames (#3241) 2024-05-07 19:31:37 -07:00
test_background_task.py [REF-3184] [REF-3339] Background task locking improvements (#3696) 2024-07-23 15:28:38 -07:00
test_call_script.py Always treat the call_script callback as a string of JS code (#3521) 2024-06-20 18:05:25 -07:00
test_client_storage.py add module prefix to generated state names (#3214) 2024-07-11 11:13:57 -07:00
test_component_state.py add support for lifespan tasks (#3312) 2024-05-22 12:07:03 -07:00
test_computed_vars.py add module prefix to generated state names (#3214) 2024-07-11 11:13:57 -07:00
test_connection_banner.py state.js: set event_processing = false when websocket connects (#3443) 2024-06-07 13:29:25 -07:00
test_deploy_url.py set config.deploy_url during AppHarness tests (#3359) 2024-05-23 09:23:07 -07:00
test_dynamic_routes.py add module prefix to generated state names (#3214) 2024-07-11 11:13:57 -07:00
test_event_actions.py add module prefix to generated state names (#3214) 2024-07-11 11:13:57 -07:00
test_event_chain.py add module prefix to generated state names (#3214) 2024-07-11 11:13:57 -07:00
test_exception_handlers.py add module prefix to generated state names (#3214) 2024-07-11 11:13:57 -07:00
test_form_submit.py add module prefix to generated state names (#3214) 2024-07-11 11:13:57 -07:00
test_input.py add module prefix to generated state names (#3214) 2024-07-11 11:13:57 -07:00
test_large_state.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
test_lifespan.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
test_login_flow.py add module prefix to generated state names (#3214) 2024-07-11 11:13:57 -07:00
test_media.py Deprecate cached var (#3582) 2024-06-28 10:14:55 -07:00
test_navigation.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
test_server_side_event.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
test_shared_state.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
test_state_inheritance.py typed mixins and ComponentState (#3196) 2024-05-15 12:07:41 -07:00
test_table.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
test_tailwind.py [REF-3004] Use relative path to stylesheet for postcss-import compat (#3435) 2024-06-05 10:02:05 -07:00
test_upload.py add module prefix to generated state names (#3214) 2024-07-11 11:13:57 -07:00
test_urls.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
test_var_operations.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00
utils.py upgrade to latest ruff (#3497) 2024-06-19 12:32:13 +02:00