Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass props to mapper #6

Open
achtan opened this issue Jun 4, 2016 · 2 comments
Open

pass props to mapper #6

achtan opened this issue Jun 4, 2016 · 2 comments

Comments

@achtan
Copy link

achtan commented Jun 4, 2016

is it possible to pass props to mapper?

export const mapper = (context, actions) => {
  // how to access props from component?
  return {
    context: () => context,
    actions: () => actions
  }
};
@macrozone
Copy link

I think the deps mapping should be static. You can use react-komposer to create new properties and use the parts of the context there

@achtan
Copy link
Author

achtan commented Feb 2, 2017

and how about new v2.0 komposer? there is no such thing as old-mapper from v1. So where should i map my actions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants