henrik 2021-05-19T14:35:03.010300Z

I've been away from re-frame since :fx was introduced. I'm using one instance with two :dispatch effects. I mutate the DB (a bog standard reg-event-db) in the first :dispatch, but this change doesn't seem to show up in the next one (which incidentally, is another reg-event-fx). Is it possible/expected to see race conditions between the entries like this?

p-himik 2021-05-19T14:38:09.010400Z

It's not expected. If you can provide a repo with a minimal reproducible example, I will take a look.

henrik 2021-05-19T14:40:09.010600Z

Thank you @p-himik, I just realized the problem is me. I forgot that reg-event-fx provides a map with the DB in it, and not DB directly.

nixin72 2021-05-19T14:50:55.011Z

Ahh, I found the issue, I had one extra (fn [] ...) in the component that my links were in. I'm not sure why it was causing the issue, but it was. Things appear to be working as expected now.

p-himik 2021-05-19T14:56:54.011500Z

In this case, :key would've indeed helped (I think), but it would be an incorrect solution IMO just because the cause of the issue is something else entirely.