---
name: state-adapt-rxjs
description: "Use @state-adapt/rxjs accurately with its packaged API documentation. State management library built with RxJS and inspired by the adapter pattern introduced in NgRx/Entity. Use when implementing, debugging, reviewing, or answering questions about @state-adapt/rxjs."
---

## StateAdapt Guide

Move logic as far downstream/colocated as possible. Derive as much as possible. Do not store duplicate/redundant state.

Prefer reactive/declarative code. Avoid unnecessary callbacks/effects. Minimize number of imperative statements.

Inline event callbacks in JSX/templates.
Only make 1 imperative call per event callback unless completely unavoidable. Ideally, directly trigger only 1 change
per event callback. Minimal event pre-processing like e.preventDefault() is okay.

## References

Use these references as the source of truth for @state-adapt/rxjs and follow the patterns established in the examples:

### index

- [catchErrorSource](references/index/catchErrorSource.md)
- [configureStateAdapt](references/index/configureStateAdapt.md)
- [ConfigureStateAdaptOptions](references/index/ConfigureStateAdaptOptions.md)
- [getRequestSources](references/index/getRequestSources.md)
- [InitialState](references/index/InitialState.md)
- [joinStores](references/index/joinStores.md)
- [source-1](references/index/source-1.md)
- [Source](references/index/Source.md)
- [splitRequestSources](references/index/splitRequestSources.md)
- [splitSources](references/index/splitSources.md)
- [StateAdapt](references/index/StateAdapt.md)
- [toRequestSource](references/index/toRequestSource.md)
- [toSource](references/index/toSource.md)
- [type](references/index/type.md)
