Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { createConstAndAction, createFetchTypesAndFuncs } from './utils';
- export const { PRODUCTS, products } = createFetchTypesAndFuncs('products');
- export const { LOAD_PRODUCTS, loadProducts } = createConstAndAction('LOAD_PRODUCTS');
- // these actions is for pull-to-load-more
- export const { LOAD_MORE_PRODUCTS, loadMoreProducts } = createConstAndAction('LOAD_MORE_PRODUCTS');
Add Comment
Please, Sign In to add comment