UNPKG

@bigfishtv/cockpit

Version:

20 lines (17 loc) 411 B
/** * @module Reducers/route */ var initialState = { component: null, props: {} /** * Reducer for updating the current route * @param {Object} state * @param {String} action * @return {Object} returns state */ };export default function () { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState; var action = arguments[1]; return state; }