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

Fix get_parent_state and get_root_state when using `mixin=True`

#4976Merged
Comparing
masenf/mixin-get-parent-state
(
f1aecd8
) with
main
(
346bce0
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
12
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

test_compile_stateful[_simple_page]
tests/benchmarks/test_compilation.py::test_compile_stateful[_simple_page]
CodSpeed Performance Gauge
+2%
265.2 µs
260.9 µs
test_get_all_imports[_simple_page]
tests/benchmarks/test_compilation.py::test_get_all_imports[_simple_page]
CodSpeed Performance Gauge
+2%
470.2 µs
462.7 µs
test_get_all_imports[_complicated_page]
tests/benchmarks/test_compilation.py::test_get_all_imports[_complicated_page]
CodSpeed Performance Gauge
+1%
30.8 ms
30.6 ms
test_compile_page[_complicated_page]
tests/benchmarks/test_compilation.py::test_compile_page[_complicated_page]
CodSpeed Performance Gauge
+1%
133.2 ms
132.4 ms
test_get_all_imports[_stateful_page]
tests/benchmarks/test_compilation.py::test_get_all_imports[_stateful_page]
CodSpeed Performance Gauge
0%
4 ms
3.9 ms
test_evaluate_page[_simple_page]
tests/benchmarks/test_evaluate.py::test_evaluate_page[_simple_page]
CodSpeed Performance Gauge
0%
853.6 µs
849.8 µs
test_compile_page[_stateful_page]
tests/benchmarks/test_compilation.py::test_compile_page[_stateful_page]
CodSpeed Performance Gauge
0%
16.5 ms
16.5 ms
test_evaluate_page[_complicated_page]
tests/benchmarks/test_evaluate.py::test_evaluate_page[_complicated_page]
CodSpeed Performance Gauge
0%
64.3 ms
64.1 ms
test_evaluate_page[_stateful_page]
tests/benchmarks/test_evaluate.py::test_evaluate_page[_stateful_page]
CodSpeed Performance Gauge
0%
8.6 ms
8.6 ms
test_compile_stateful[_complicated_page]
tests/benchmarks/test_compilation.py::test_compile_stateful[_complicated_page]
CodSpeed Performance Gauge
0%
1 ms
1 ms
test_compile_stateful[_stateful_page]
tests/benchmarks/test_compilation.py::test_compile_stateful[_stateful_page]
CodSpeed Performance Gauge
0%
363.3 µs
363.6 µs
test_compile_page[_simple_page]
tests/benchmarks/test_compilation.py::test_compile_page[_simple_page]
CodSpeed Performance Gauge
-1%
2.2 ms
2.2 ms

Commits

Click on a commit to change the comparison range
Base
main
346bce0
0%
Fix get_parent_state and get_root_state when using `mixin=True` If a state class inherits directly from a mixin class, find the proper parent class by looking through the `mro()` until a non-mixin class is found.
f1aecd8
11 days ago
by masenf
© 2025 CodSpeed Technology
Home Terms PrivacyDocs