client/src/actions/networkActions.js
author ymh <ymh.work@gmail.com>
Mon, 26 Jun 2017 16:05:47 +0200
changeset 88 2a861fed6bde
parent 87 dbcee57de2c6
child 129 d48946d164c6
permissions -rw-r--r--
Deauthenticate user if refresh was not possible (session expired or total delta reached)

import * as types from '../constants/actionTypes';

export const dataFetchSuccess = (res) => {
  return {
    type: types.DATA_FETCH_SUCCESS,
    res
  };
}

export const offlineConfigInitialized = (additionalContext) => {
  return {
    type: types.OFFLINE_CONFIG_INITIALIZED,
    additionalContext
  }
}