Fork me on GitHub
#re-frame
<
2016-12-22
>
alqvist14:12:38

getting "no app-db changes caused by" for a lot of handlers that should have produced a diff

alqvist14:12:16

What common mistakes should I watch for?

samueldev14:12:04

can you provide an example for a specific handler @alqvist ?

alqvist14:12:54

mayhap it has something do with user action vs callbacks from Sente

vikeri15:12:14

It seems I can’t use add-watch to monitor re-frame subscriptions if the subscriptions aren’t dereffed in any component. Is that correct? I’m running my React Native headlessly and thus don’t have any React components mounted.

mikethompson19:12:23

@alqvist could it be that the value of db after the merge just so happens to be = to the original value of db? Hence nothing changing?

mikethompson19:12:15

Ie, are all these events already in db somehow, from before? OR events might be nil or an empty collection.

mikethompson19:12:23

Wild guessing. Can't see anything wrong with the pasted code.

mikethompson19:12:05

@vikeri that sounds about right, although I've never tried it.

vikeri20:12:30

@mikethompson Alright, so no way of monitoring a reaction without dereffing it in a component? Any ideas of how I should solve it then? I would like to reuse as much of my re-frame logic as possible.