reassemble
reassemble copied to clipboard
needs better docs, examples
For instance, how do you actually use the lifecycle composables?
And a basic react-redux example. As I see it, the connect can not life within the assemble HOC?
Cross post from #4:
This doesn't work for example:
assemble(
connect(), // react-redux/connect
withHandlers({
requestSubmit: ({ form, dispatch }) => () => {
dispatch(submit(form)); // ERR: dispatch is `undefined`
},
}),
),
The ~~correct~~ working way would be:
compose( // recompose/compose
connect(), // react-redux/connect
assemble( // reassemble/assemble
withHandlers({
requestSubmit: ({ form, dispatch }) => () => {
dispatch(submit(form));
},
}),
),
);