Skip to content

Commit

Permalink
document isAutosaving reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed May 11, 2018
1 parent dbd3ab6 commit 4204ad2
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 @@ -584,6 +584,14 @@ export function isTyping( state = false, action ) {
return state;
}

/**
* Reducer returning autosave state. True if an autosave is currently occurring.
*
* @param {boolean} state Current state.
* @param {Object} action Dispatched action.
*
* @return {Boolean} Updated state.
*/
export function isAutosaving( state = false, action ) {
switch ( action.type ) {
case 'REQUEST_POST_UPDATE':
Expand Down

0 comments on commit 4204ad2

Please sign in to comment.