From 4204ad2dba24e3acc0797b9ae11fb178d2a442cf Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 11 May 2018 08:53:49 -0400 Subject: [PATCH] document isAutosaving reducer --- editor/store/reducer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/editor/store/reducer.js b/editor/store/reducer.js index 32af16572f8b96..ac1f40d5a47503 100644 --- a/editor/store/reducer.js +++ b/editor/store/reducer.js @@ -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':