State

Last updated 6 months ago
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
};