Closed AfflatusX closed 5 years ago
It's a little ugly, but you can do something like:
createConnectedStoreAs(initialStates, stores => {
return withEffects({
a: withLogger(stores.a),
b: withLogger(stores.b)
})
})
createConnectedStoreAs
's second argument is any function that takes an object of stores, and returns an object of stores.
Looks like withLogger only takes single store definition?