def test_mixin_state() -> None:
    """Test that a mixin state works correctly."""
    assert "num" in UsesMixinState.base_vars
    assert "num" in UsesMixinState.vars
    assert UsesMixinState.backend_vars == {"_backend": 0, "_backend_no_default": {}}

    assert "computed" in UsesMixinState.computed_vars
    assert "computed" in UsesMixinState.vars

    assert (
        UsesMixinState(_reflex_internal_init=True)._backend_no_default  # pyright: ignore [reportCallIssue]
        is not UsesMixinState.backend_vars["_backend_no_default"]
    )

    assert UsesMixinState.get_parent_state() == State
    assert UsesMixinState.get_root_state() == State
Test that a mixin state works correctly.
tests/units/test_state.py