This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-29
Channels
- # aleph (2)
- # bangalore-clj (1)
- # beginners (9)
- # boot (18)
- # clara (3)
- # cljs-dev (21)
- # cljsjs (2)
- # clojure (137)
- # clojure-spec (2)
- # clojurescript (65)
- # clr (1)
- # copenhagen-clojurians (11)
- # core-async (20)
- # datascript (3)
- # lein-figwheel (1)
- # leiningen (4)
- # luminus (4)
- # lumo (1)
- # off-topic (38)
- # onyx (1)
- # parinfer (4)
- # pedestal (9)
- # protorepl (8)
- # re-frame (4)
- # reagent (92)
- # ring-swagger (2)
- # rum (1)
- # unrepl (40)
- # vim (16)
- # yada (1)
@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
@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?
async-flow for your reference: https://github.com/Day8/re-frame-async-flow-fx