createResourceStore
Creates a resource store that holds all of the resource data of your app. There should only be a single resource store in your app.
Arguments
initialState
(Object): The initial state. This can be useful in universal apps or progressive web apps.[
options
] (object): Optional additional options to configure the store. Presently, the only option isschemas
, which is where you can define schemas for your resource types.
Returns
(Store
): An object that holds all of the resource data for your app. It provides methods to update resources and resource groups, as well as methods to retrieve them from the store.
Example
Last updated