Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.js 839B

123456789101112131415161718192021
  1. export const FETCH = '[FETCH]';
  2. export const UPDATE = '[UPDATE]';
  3. export const SUCCESS = '[SUCCESS]';
  4. export const SET = '[SET]';
  5. export const ERROR = '[ERROR]';
  6. export const SUBMIT = '[SUBMIT]';
  7. export const CLEAR = '[CLEAR]';
  8. export const DELETE = '[DELETE]';
  9. export const LOADING = '[LOADING]';
  10. const createType = (typeDescription) => (type) => `${typeDescription}${type}`;
  11. export const createFetchType = createType(FETCH);
  12. export const createUpdateType = createType(UPDATE);
  13. export const createSuccessType = createType(SUCCESS);
  14. export const createSetType = createType(SET);
  15. export const createErrorType = createType(ERROR);
  16. export const createSubmitType = createType(SUBMIT);
  17. export const createClearType = createType(CLEAR);
  18. export const createDeleteType = createType(DELETE);
  19. export const createLoadingType = createType(LOADING);