Avatar for the reflex-dev user
reflex-dev
reflex
BlogDocsChangelog

allow state mutation with contextmanager from normal (non-background) events

#5938Merged
Comparing
benedikt-bartscher:allow-state-context-manager-in-normal-events
(
4cf6303
) with
main
(
c4254ed
)
CodSpeed Performance Gauge
0%
Untouched
8

Benchmarks

8 total
test_get_all_imports[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
+1%
22.8 ms22.5 ms
test_compile_page[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
+1%
88.7 ms88.1 ms
test_evaluate_page[_stateful_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
6.5 ms6.5 ms
test_evaluate_page[_complicated_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
46.2 ms46.2 ms
test_compile_page[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
10.4 ms10.4 ms
test_get_all_imports[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
3.1 ms3.1 ms
test_compile_stateful[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
147.3 µs147.8 µs
test_compile_stateful[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
584.3 µs586.5 µs

Commits

Click on a commit to change the comparison range
Base
main
c4254ed
+0.29%
add config option to allow state mutation with contextmanager from non-background events
7878e02
6 months ago
by benedikt-bartscher
+0.01%
fix codespell
86896fe
6 months ago
by benedikt-bartscher
-0.15%
make state contextmanager a no-op by default, drop config option
4cf6303
6 months ago
by benedikt-bartscher
© 2026 CodSpeed Technology
Home Terms Privacy Docs