text: // ------------------------------------
  // Constants
  // ------------------------------------
  export const LOCATION_CHANGE = 'LOCATION_CHANGE';
  
  // ------------------------------------
  // Actions
  // ------------------------------------
  export function locationChange(location = '/') {
    return {
      type: LOCATION_CHANGE,
      payload: location,
    };
  }
  
  // ------------------------------------
  // Specialized Action Creator
  // ------------------------------------
  export function updateLocation({ dispatch }) {
    return nextLocation => dispatch(locationChange(nextLocation));
  }
  
  // ------------------------------------
  // Reducer
  // ------------------------------------
  const initialState = null;
  export default function locationReducer(state = initialState, action) {
    return action.type === LOCATION_CHANGE ? action.payload : state;
  }
  