Guest User

Untitled

a guest
Nov 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import { createConstAndAction, createFetchTypesAndFuncs } from './utils';
  2.  
  3. export const { PRODUCTS, products } = createFetchTypesAndFuncs('products');
  4.  
  5. export const { LOAD_PRODUCTS, loadProducts } = createConstAndAction('LOAD_PRODUCTS');
  6. // these actions is for pull-to-load-more
  7. export const { LOAD_MORE_PRODUCTS, loadMoreProducts } = createConstAndAction('LOAD_MORE_PRODUCTS');
Add Comment
Please, Sign In to add comment