Reducer combining byId object, ids array, isFetching and errorMessage into a single object which means collection will be a top object in the state.
Reducer to hold the collection object and represent a root reducer of a SenseNet Redux application store. If you want to add your custom Reducers to the store, create your own
root Reducer combining collection and your top Reducer.
Reducer to handle Actions on the byId Object in the state, which is a dictionary with normalized nested JSON response. It becomes the current state and an action as arguments, creates a new state based on the previous state and the action and returns it as the next state. If the Action doesn't affect the state the returned state will be the current state itself.
Represents an action that is called.
state. Returns the next state based on the action.
Reducers to set the errormessage in the state if a process is failed. If the Action doesn't affect the state the returned state will be the current state itself.
Represents the action that is called.
state. Returns the next state based on the action.
Method to get a Content item from a state object by its Id.
Current state object.
Id of the Content.
content. Returns the Content from a state object with the given Id.
Method to get the error message.
Current state object.
Returns the error message.
Method to get if the fetching of data is in progress.
Current state object.
Returns true or false whether data fetching is in progress or not.
Method to get the ids array from a state object.
Current state object.
content. Returns the ids array from the given state.
Reducers to handle Actions on the ids Array in the state, which is the list Ids of the Content in the byId Object. It becomes the current state of the ids array and an action creates a new array based on the current one and the action and returns it as the next state of the ids array. If the Action doesn't affect the state the returned state will be the current state itself.
Represents the current state.
Represents the action that is called.
state. Returns the next state based on the action.
Reducers to set in the state if the data is fetching or not. If the Action doesn't affect the state the returned state will be the current state itself.
Represents the action that is called.
state. Returns the next state based on the action.
Reducer to handle Actions on the user Object in the state. It becomes the current state and an action as arguments, creates a new state based on the previous state and the action and returns it as the next state. If the Action doesn't affect the state the returned state will be the current state itself.
Represents an action that is called.
state. Returns the next state based on the action.
Generated using TypeDoc
Module for defining Redux reducers.
Actions describe the fact that something happened, but don't specify how the application's state changes in response. This is the job of a reducer.
Following module contains the reducers of sn-redux, some 'reducer groups' and the root reducer which could be passed to the store creator function. Using a root reduces means that you define which combination of reducers will be used and eventually defines which type of actions can be called on the store.