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?
It's not expected. If you can provide a repo with a minimal reproducible example, I will take a look.
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.
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.
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.