mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-19 16:03:02 +00:00
86016: Add typedocs
This commit is contained in:
@@ -9,6 +9,12 @@ const initialState = null;
|
||||
|
||||
export const correlationIdSelector = (state: AppState) => state.correlationId;
|
||||
|
||||
/**
|
||||
* Reducer that handles actions to update the correlation ID
|
||||
* @param {string} state the previous correlation ID (null if unset)
|
||||
* @param {CorrelationIdAction} action the action to perform
|
||||
* @return {string} the new correlation ID
|
||||
*/
|
||||
export const correlationIdReducer = (state = initialState, action: CorrelationIdAction): string => {
|
||||
switch (action.type) {
|
||||
case CorrelationIDActionTypes.SET: {
|
||||
|
Reference in New Issue
Block a user