This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-20
Channels
- # announcements (1)
- # beginners (65)
- # calva (16)
- # cider (44)
- # clara (16)
- # clojure (84)
- # clojure-dev (48)
- # clojure-europe (5)
- # clojure-finland (4)
- # clojure-houston (1)
- # clojure-italy (19)
- # clojure-nl (27)
- # clojure-russia (6)
- # clojure-spec (37)
- # clojure-uk (123)
- # clojured (11)
- # clojurescript (21)
- # datomic (40)
- # duct (4)
- # emacs (6)
- # figwheel (4)
- # figwheel-main (5)
- # fulcro (34)
- # jackdaw (8)
- # juxt (117)
- # kaocha (3)
- # klipse (1)
- # leiningen (33)
- # luminus (2)
- # nyc (3)
- # off-topic (29)
- # om (1)
- # pedestal (7)
- # planck (4)
- # re-frame (27)
- # reagent (8)
- # reitit (5)
- # rum (2)
- # shadow-cljs (428)
- # spacemacs (5)
- # tools-deps (15)
- # yada (6)
Will need a repro
What happens if you set localstorage manually?
Have you ever got the panel to show?
my steps to reproduce are, have a project with that project.clj file, do cider jack-in or lein fig:build
and enter "C-h" after clicking in window
Sounds like it is not being initialised properly
There should be a div with id #--re-frame-10x--
in your HTML. If that's not there, then it hasn't been initialised yet
Hard to say without more info. Is there anything suspicious in the console?
2019-02-19 18:13:40.648:INFO::nREPL-worker-0: Logging initialized @10037ms
personal-web.core> [Figwheel] Compiling build dev to "target/public/cljs-out/dev-main.js"
[Figwheel] Successfully compiled build dev to "target/public/cljs-out/dev-main.js" in 1.762 seconds.
[Figwheel] Watching paths: ("src/main/cljs") to compile build - dev
[Figwheel] Starting Server at
[Figwheel] Starting REPL
Prompt will show when REPL connects to evaluation environment (i.e. a REPL hosting webpage)
Figwheel Main Controls:
(figwheel.main/stop-builds id ...) ;; stops Figwheel autobuilder for ids
(figwheel.main/start-builds id ...) ;; starts autobuilder focused on ids
(figwheel.main/reset) ;; stops, cleans, reloads config, and starts autobuilder
(figwheel.main/build-once id ...) ;; builds source one time
(figwheel.main/clean id ...) ;; deletes compiled cljs target files
(figwheel.main/status) ;; displays current state of system
Figwheel REPL Controls:
(figwheel.repl/conns) ;; displays the current connections
(figwheel.repl/focus session-name) ;; choose which session name to focus on
In the cljs.user ns, controls can be called without ns ie. (conns) instead of (figwheel.repl/conns)
Docs: (doc function-name-here)
Exit: :cljs/quit
Results: Stored in vars *1, *2, *3, *e holds last exception object
Opening URL
To quit, type: :cljs/quit
cljs.user>
Browser console?
Installing CLJS DevTools 0.9.10 and enabling features :formatters :hints :async
Download the React DevTools for a better development experience:
[goog.net.WebSocket] Opening the WebSocket on
[goog.net.WebSocket] WebSocket opened on
[Figwheel REPL] Session ID: 146fd6fe-42d6-44a3-ba0a-2db2b7db9584
[Figwheel REPL] Session Name: Francisco
An interactive re-frame tutorial https://blog.klipse.tech/clojure/2019/02/17/reframe-tutorial.html
👍 10
i have this component
(defn router
"handles routing for the app"
[]
(let [r @(rf/subscribe [:active-panel-name])]
(.log js/console "router @" r)
(case r
:home home/page
:page2 [:div "Page 2"]
:page3 [:div "Page 3"]
[:div "Page does not exist"])))
(reg-sub
:active-panel
(fn [db _]
(let [result (:active-panel db)]
(.log js/console "result 1" result)
result)))
(reg-sub
:active-panel-name
:<- [:active-panel]
(fn [active-panel _]
(let [result (get-in active-panel [:data :name])]
(.log js/console "result 2" result)
result)))