Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (25 sloc) 500 Bytes

Default State

import {initialState} from 'redux-rest-resource';

initialState ==
  {
    // FETCH props
    items: [],
    isFetching: false,
    lastUpdated: 0,
    didInvalidate: true,
    // GET props
    item: null,
    isFetchingItem: false,
    lastUpdatedItem: 0,
    didInvalidateItem: true,
    // CREATE props
    isCreating: false,
    // UPDATE props
    isUpdating: false,
    isUpdatingMany: false,
    // DELETE props
    isDeleting: false,
    isDeletingMany: false
  };