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

advanced composeAll #42

Closed
makstr opened this issue Jan 25, 2016 · 3 comments
Closed

advanced composeAll #42

makstr opened this issue Jan 25, 2016 · 3 comments

Comments

@makstr
Copy link

makstr commented Jan 25, 2016

@arunoda I am having some issues with composeAll. I seems that it is not passing all predefined in composer functions properties to the final component.

I checked in the source code of react-komposer and it appears that there are no limits on the number of composers functions within composeAll method.

So I just wanted to confirm with you that writing a method like this is fine?:

export default (component) => composeAll(
    composeWithTracker(ColorSingleComposer),
    composeWithTracker(ColorsUpdateComposer),
    useDeps(depsMapper)
  )(component)

@makstr
Copy link
Author

makstr commented Jan 26, 2016

Never mind, I just figured it out :-)

@makstr makstr closed this as completed Jan 26, 2016
@luisherranz
Copy link

@makstr It's a good practice to publish the solution here for those googling for the same problem in the future.

@makstr
Copy link
Author

makstr commented Jan 26, 2016

sorry, turns out the above code is perfectly fine, so you can combine as many composer functions as you like

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