mount 2019-04-24

@ben606 has joined the channel

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

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.

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

👍 1