Epps!

Usage

The package is installed and the plugin configured. Now let's define our first EppsStore and use it in a component.

Define a EppsStore

Let's take a Store representing a user as an example. This Store will extend a Store representing a person and benefit from the latter's State and methods. It will also extend the “setData” method, so when useStore.setData is executed, the personStore.setData method will also be executed.

To define a Store that will extend the State and methods of other Stores, use the defineEppsStore and extendedState functions.

To benefit from the State's persistence function, only the extendedState function is required.

@see

Use a EppsStore in a component