old_contents: console.log('actions');
  
new_contents: import fetch from 'isomorphic-fetch';
  console.log('actions');
  
  
  export const REQUEST_ENTITY = 'REQUEST_ENTITY';
  export const RECEIVE_ENTITY = 'RECEIVE_ENTITY';
  
  function requestEntity({id}){
    return {type: REQUEST_ENTITY, payload: {id}};
  }
  
  function receiveEntity({id}){
    return {type: RECEIVE_ENTITY, payload: {id}};
  }
  
  
  export function fetchEntity({id}){
    return function middleWareFetchCall(dispatch){
      dispatch(requestEntity({id}));
      return fetch(`http://localhost:9999/x/entity/${id}`)
              .then(response => response.json())
              .then(json => dispatch(receiveEntity(json)));
    }
  }
  
subject: Add actions