@hlolli When you use :merge, do you also return a map shaped like: {:keys … :next …. :tempids …}?
:merge
{:keys … :next …. :tempids …}
and then within :next a function called that performs the db mutation?
:next