From dfe6bc3f235ec86d7764a5ebfeb54445b878276d Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Fri, 11 May 2018 08:56:16 -0400 Subject: [PATCH] document autosave reducer --- editor/store/reducer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/editor/store/reducer.js b/editor/store/reducer.js index ac1f40d5a47503..a7b2d276f94dc5 100644 --- a/editor/store/reducer.js +++ b/editor/store/reducer.js @@ -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 ) {