Closed PolGuixe closed 7 years ago
I managed to make it work. Thanks @ochicf.
I had to curry createContainer
.
This way it works:
import _ from 'lodash'; // You can also do a JS curry. Lodash just makes things nicer ;)
import UI from './UI';
const composableMeteorContainer = _.curry(createContainer, 2)(()=>{
// ... logic
return {...props}
})
const reduxComposer = connect(mapState);
export default composeAll(
composableMeteorContainer,
redixComposer,
)(UI);
I am trying to use
composeAll
to compose different containers.Working:
Not working:
Can
createContainer
work this way?