Raxvis / redux-tools

Redux Tools to make redux easy
1 stars 2 forks source link

models/index.js should export model objects instead of actions/types/etc #4

Open charliecochran opened 5 years ago

charliecochran commented 5 years ago
import models from '../models';

models.product.actions.refresh();
models.product.selectors.getProductName(state);
charliecochran commented 5 years ago

models/index.js

import app from './app';
import product from './product';
import { combine } from 'redux-tools/models';

export const { models, reducer, sagas } = combine({ app, product });

export default models;