Skip to content

Commit

Permalink
document autosave reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed May 11, 2018
1 parent 4204ad2 commit dfe6bc3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions editor/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,14 @@ export const blockListSettings = ( state = {}, action ) => {
return state;
};

/**
* Reducer returning the most recent autosave.
*
* @param {Object} state The autosave object.
* @param {Object} action Dispatched action.
*
* @return {Object} Updated state.
*/
export const autosave = ( state = null, action ) => {
const { post } = action;
switch ( action.type ) {
Expand Down

0 comments on commit dfe6bc3

Please sign in to comment.