Fork me on GitHub
#re-frame
<
2020-11-17
>
steveb8n22:11:04

Q: I want to create custom db effects that are composable. Is there any prior art for how to do this?

steveb8n22:11:13

I want this because I want them de-coupled (compared to just composing fns which couples via a require)

steveb8n22:11:02

but they need to compose e.g. http response handler calls a de-coupled util db effect and adds its own custom db transforms.

steveb8n22:11:53

One idea would be to allow these effects to accept a seq of “decorator” fns along with its args

steveb8n22:11:04

but I’m curious about other designs

steveb8n22:11:33

the perfect solution would allow composition of n db effects and some custom db transforms in an event handler output map

steveb8n03:11:01

fwiw I think I can achieve all of these goals using the new :fx guaranteed ordering feature. happy days