Lol you do know that the class I wrote and the function under the hood for createContainer are the…
Abhi Aiyer
1

Yes sure, I actually like your post because it’s good training material to demistify the react-meteor stuff.

But you basically took the body of createContainer, reused a mixin (ReactMeteorData) which will be deprecated pretty soon. On top of all that you add recompose as a dependency because of a single function which basically does nothing.

I’m just saying that if anybody wants to solve an issue like this you don’t have to mingle and duplicate code of libraries you use, you can just use currying techniques to map signatures and you’re set.

fn(x,y) -> fn(x)(y)

const fnWrapped = x => y => fn(x, y)

Like what you read? Give Pascal Kaufmann a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.