export function isFailure(state: State, key: string) {
  return state.requests[key] && state.requests[key].status === FAILURE;
}