This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-27
Channels
- # admin-announcements (5)
- # cider (4)
- # cljs-dev (20)
- # cljsjs (2)
- # cljsrn (6)
- # clojure (126)
- # clojure-austin (2)
- # clojure-berlin (1)
- # clojure-brasil (5)
- # clojure-japan (1)
- # clojure-russia (14)
- # clojure-spec (2)
- # clojure-uk (3)
- # clojurescript (11)
- # cursive (19)
- # datomic (5)
- # editors (1)
- # emacs (10)
- # funcool (5)
- # hoplon (170)
- # instaparse (4)
- # jobs (1)
- # om (1)
- # onyx (1)
- # re-frame (14)
- # reagent (1)
- # testing (14)
- # yada (1)
@shyambalu: Could you post an example of what you’re doing now? Should make it a little easier to help.
@shaun-mahood: something like this login handler -> makes ajax call -> sets loading true in app db
login response handler (gets called from successful ajax response) -> sets loading false in app db
and separate parts of the app and be loading simultaneously so can’t only have one loading state in app-db
@shyambalu: If you’re using v0.8.0, there are some things that should help in the new docs - https://github.com/Day8/re-frame/tree/master/docs - particularly the sections on effectful handlers and populating your application data. If things are still unclear or you have any specific questions please ask - we’re trying to get the documentation as good as we can so any areas of confusion will still help. If you’ve already been through those docs and they didn’t help, let me know and I will see if I can come up with a more specific response or an example.
@shaun-mahood yep that looks perfect
@shyambalu: I think so - it seems like it solves a lot of the issues I’ve run into from earlier. Is your code base pretty big?
Big enough to make it a pain to change though I bet. If you don’t have any re-frame middleware, I think you should be able to update to the new version reasonably easily (change register-sub to reg-sub-raw, register-handler to reg-sub-db) - but I guess we should add a section to the docs specifically on how to update to v0.8.0 with some examples.