createResourceStore
Last updated
Last updated
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.
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 is schemas
, which is where you can define schemas for your resource types.
(): 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.