Fork me on GitHub
#re-frame
<
2017-07-29
>
akiroz07:07:18

@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: https://github.com/juxt/pull

nidu17:07:12

@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.

akiroz19:07:38

@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?