more explicit comment

This commit is contained in:
echenley 2016-02-05 10:28:22 -06:00
parent 5c74b7f986
commit 2ae9279171

View File

@ -236,7 +236,7 @@ function liftReducerWith(reducer, initialCommittedState, monitorReducer, options
}
case ActionTypes.PERFORM_ACTION: {
if (options.maxAge && stagedActionIds.length === options.maxAge) {
// If maxAge has been reached, remove oldest action.
// If maxAge has been reached, auto-commit earliest non-@@INIT action.
delete actionsById[stagedActionIds[1]];
skippedActionIds = skippedActionIds.filter(id => id !== stagedActionIds[1]);
stagedActionIds = [0].concat(stagedActionIds.slice(2));