This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-04
Channels
- # admin-announcements (1)
- # alda (2)
- # beginners (52)
- # boot (8)
- # cider (14)
- # cljs-dev (7)
- # cljsrn (5)
- # clojure (4)
- # clojure-belgium (2)
- # clojure-brasil (1)
- # clojure-dev (8)
- # clojure-greece (6)
- # clojure-russia (34)
- # clojure-spec (42)
- # clojurescript (20)
- # cursive (5)
- # funcool (1)
- # hoplon (313)
- # immutant (1)
- # lambdaisland (24)
- # mount (1)
- # om (26)
- # perun (1)
- # planck (2)
- # proton (1)
- # protorepl (6)
- # pure-frame (15)
- # re-frame (14)
- # specter (17)
- # spirituality-ethics (1)
Hi! Looking for some assistance. I just converted some working reagent stuff over to re-frame, and events are handled, components are rendered, etc. I'm using boot's reload task. Before switching to re-frame, everything would smoothly update in the browser page after a save. After, it's no longer working. I have to manually reload the page in the browser to get it to pick up and changes to the CLJS at all.
I tried switching my render
to
(reagent/render [#'depth-table]
(by-id "content")
but no dice.Figured it out. Can be solved by taking the approach suggested here: https://github.com/reagent-project/reagent/issues/112#issuecomment-82908212
And then changing the boot-reload task to
(reload :on-jsload 'my.namespace/mount-root)
so following to larger app structure reccomended in the docs, where do you guys suggest putting reusable components that will be used across multiple of my "panes"?
I guess I havn't found the docs ( https://github.com/binaryage/pure-frame ) super helpful
(def frame-handlers
{:initialize-db
(fn [_ _] db/default-db)
:set-kv
(fn [db [_ k v]] (assoc db k v))})
(def frame-subs
{:name (fn [db]
(reaction (:name @db)))})
(def app-db (pure-frame/make-frame frame-handlers frame-subs))
@mccraigmccraig: can you take a look and tell me what you think? https://github.com/caioaao/re-interval I didn’t even tested it with re-frame, so idk if the event handling is working
Nice @caio! Btw in Clojure i really like https://github.com/jarohen/chime maybe it can be posted to Clojurescript as well