Closed lyquocnam closed 8 years ago
Yes, you can: Change container code
export const depsMapper = (context, actions) => ({
create: actions.posts.create,
clearErrors: actions.posts.clearErrors,
context: () => context
});
to
export const depsMapper = (context, actions) => ({
create: actions.posts.create,
clearErrors: actions.posts.clearErrors,
actions,
context: () => context
});
But you should think why you need this.
yeah i mean we can pass actions to context, do not need use mapper on container. i'm lazy :3 this may be hard ^^
It's totally doable.
But context()
is for client
, actions
is designed for individual module. I think it's anti-mantra to do this.
normally i do this:
return (...) }