Fork me on GitHub
#re-frame
<
2017-08-05
>
mikethompson03:08:34

@frederic There's nothing to stop you from returning a function. But it would seem odd to me. I would expect subscriptions to return values (data) -- after all app-db only contains data.

mattly04:08:26

@frederic you could very easily make the argument that functions are data. I’m using this in a few places in my app for something to pass to an event handler

mattly04:08:56

I’m not happy about that necessarily but it’s better than most of the alternatives I’ve thought of

mikethompson05:08:47

@jfntn does the following help sufficiently? https://github.com/Day8/re-frame/blob/master/docs/FAQs/GlobalInterceptors.md Just written because this does come up from time to time