Fork me on GitHub

@jfntn not that I'm aware of. but re-frame's app-db is just a map you can easily have references on top of that by using libraries like this:


@akiroz yeah, i understand that dispatch won't dispatch immediately. But still what is the best way :form/init could do something when user is fetched (or when :user/fetch.done is called). I can pass a callback to :user/fetch which will be called when user is fetched but it doesn't sound like a re-frame way.


@nidu You can't handle what happens after fecthing inside :form/init. I think the only way to handle it would be to define an async-flow that looks like: - :form/init - :user/fetch - :user/fetch.done - :form/init.done but specifically what do you need to do after fetching the users?