Conan State

Conan State are capsules of state that can be reused. To learn more about how to manage data in ConanJs, have a look at our General Concepts section

circle-exclamation

You interact and define your Conan State with reducers and actions

Actions & Reducerschevron-right

If you understand the concepts behind the actions and reducers, then you are ready to see how to create state

Creating Statechevron-right

Subscribing to state will show you how to render your state either by connecting to your own components, or via live rendering

Observing Statechevron-right
Observing state

With Conan, you can create small Conan State elements which will be easier to test, develop and reuse. Then, you can compose new state based on this atomic states.

Composing Statechevron-right

Not all state should be global, or in the context, or local.... With ConanJs you can easily decide how to scope your state

Scaling Statechevron-right

It is also possible to create interactions between Conan States, for this, you can leverage the reactions

Orchestrating Statechevron-right

Error handling is built-in to make your life easier...

Life cyclechevron-right

... and so it is managing async use cases ...

Async handlingchevron-right

... and testing is as simple as testing a normal JS object

Testing statechevron-right

Last updated

Was this helpful?