Summary documentation
Installation
Install Epps package and configure the pluginUsage
Define an EppsStore and use it in a componentclass
functions
stores
Store useCollectionStore
useCollectionStore makes it easy to use object collections. It comes with the Epps plugin so you can extend it to your stores.Store useErrorsStore
useErrorsStore represents a collection of errors and the basic actions for selecting or deleting them. You can customize the error type by creating an interface extending Error and passing it as a parameter to useErrorStore (example: useErrorStore<FormError>(‘formsError’) ).Store useResourceIdStore
UseResourceIdStore to benefit from the id and @id properties, as well as the setData method. This store is useful for creating stores representing resources extracted from a database or API.Store useWebUserStore
useWebUserStore represents a web user and has the properties username and password as well as id and @id (inherited from useResourceIdStore).
types
Interface CollectionState
Represents collectionStore state.Interface CollectionStore
Represents collectionStore methods.Type EppsStore
Extented and persisted store typeInterface EppsStoreOptions
Defines the optional configuration for Epps Store.Interface Error
Represents an error.Interface ErrorsState
Represents errosStore state.Interface ErrorsStore
Represents errorsStore methods.Interface ExtendedState
Defines the structure of the extended state returned by the extendedState function.Type ExtendedStore
Extented store typeInterface PersistedState
Defines the structure of a persisted state.Interface PersistedStore
Defines methods of a persisted store.Interface ResourceId
Represents the identifiers of a resource extracted from a database or API.Interface WebUserState
Represents useWebUserStore state.Interface WebUserStore
Represents useWebUserStore methods.
Testing
Test Stores using Epps plugin