Fork me on GitHub
#mount
<
2019-04-24
>
ben16:04:11

What is the idiomatic way to apply a function to a mount state (for testing). I am imagining something like mount/swap but which supplies a fn rather than a value

ben18:04:19

I don’t think so. It looks like this just takes a couple of zero-story fns and invokes then on start and stop. What I’m thinking of is a 1-argument function that is invoked with the state as an argument. Although as I type that, I can see how my question might not even make sense.

ben18:04:57

In the meantime I have found a workaround by using with-redefs on an accessor fn

👍 4