Fork me on GitHub
#re-frame
<
2021-05-19
>
henrik14:05:03

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-himik14:05:09

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

henrik14:05:09

Thank you @U2FRKM4TW, 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.

👍 4