ConanState

The class ConanState contains the following methods:

connectMap <PROPS>

this method allows connecting a Conan state with a React component, using a mapper function to describe the mapping

connectData

this method allows connecting all Conan state data with a React component,

connect

‌this method allows connecting all Conan state with a React component

connectLive

‌this method allows producing connected react elements by accepting a renderer function, which receives the ConanState data and actions.

addDataReaction

‌this method can be uses to add a custom data reaction a un ConanState

do

‌this method returns the actions available for this ConanState

getData

‌this method returns the current data of this ConanState

filter

‌this method returns a filtered ConanState

map<T>

‌this method returns a remapped ConanState

merge<T, TO_MERGE>

‌this method returns a remapped ConanState

tuple<TO_MERGE>

‌this method combined two states into one

asyncState

‌this method gives access to the async state data and actions

metaFlow

‌‌this method gives access to the state meta flow

combine<T extends {}, ACTIONS = void>

‌this method combined two states into one

getEvents

‌this method gives access to the ConanState main thread events

getName

‌this method returns the ConantState name

openTransaction

‌this method allows to open a transaction

closeTransaction

‌this method allows to close the current transaction

Last updated