Fork me on GitHub
#om
<
2016-12-01
>
tobiash18:12:47

how should I go about merge!-ing more complex novelty, like adding/moving things to a list?

cmcfarlen19:12:51

@tobiash: you can override the merge or migrate fn in the reconciler or consider using transact! instead and write a mutate fn to add your novelty.

tobiash19:12:34

is there an example for overriding this somewhere? default-merge is rather complicated

cmcfarlen19:12:48

I think the approach is to detect and handle your specific case and then defer to the default one for the rest. I recommend transact! for more complex state changes if you can.

tobiash20:12:17

ok thanks. i think I'm going with transact!