Store returned by Rematch is essentially a Redux store with a few additional properties and extra features. Therefore, for more in-depth reference of the functions 'provided by Redux', refer to the Redux documentation.
Store is an object which contains the following properties:
name(string): name of a store
addModel(namedModel): it allows to lazy-load models and merge them into Rematch after init has been called. addModel accepts namedModel which means it needs to have parameter
namedefined (see example below).
getState(): provided by Redux, returns the state of your store.
subscribe(listener: () => void): Unsubscribe: provided by Redux, adds a change listener.
replaceReducer(nextReducer): void: provided by Redux, replaces the reducer currently used by the store to calculate the state.
dispatch(action): provided by Redux, a function that dispatches actions to the store. However, in Rematch dispatch can be also used as an object which contains action dispatchers (see example below).