This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-04
Channels
- # announcements (5)
- # beginners (56)
- # calva (2)
- # cider (30)
- # circleci (2)
- # cljsrn (90)
- # clojars (3)
- # clojure (18)
- # clojure-dev (9)
- # clojure-europe (3)
- # clojure-greece (14)
- # clojure-ireland (6)
- # clojure-italy (6)
- # clojure-nl (7)
- # clojure-norway (1)
- # clojure-spec (1)
- # clojure-sweden (3)
- # clojure-uk (14)
- # clojurescript (52)
- # cursive (5)
- # data-science (9)
- # datomic (3)
- # emacs (26)
- # expound (11)
- # figwheel (3)
- # figwheel-main (6)
- # fulcro (24)
- # garden (1)
- # graalvm (101)
- # liberator (1)
- # mount (1)
- # off-topic (1)
- # pathom (27)
- # portland-or (2)
- # reagent (13)
- # reitit (2)
- # ring (1)
- # shadow-cljs (10)
- # spacemacs (11)
- # sql (6)
Basically the app and a few other things get bound onto dynamic vars. when you use hoc they render “later” in a different context, and the bindings are not there
so the trick is to use with-parent-context
…but I have not tested the new version of that, and may not have gotten them all in there. Look at the factory code in components, and then compare the binding there with that of with-parent-context
Alright, thanks, will give it a look. It's not urgent just yet 🙂 I'm using the aws cognito hosted pages which have a very convenient hoc, but might end up wanting more control and test out the fulcro state machine stuff for the auth flows.
Anyone here using Emacs. I'm having trouble getting this to integrate:
(fulcro.client.primitives/get-initial-state app.ui.root/Root {})
TypeError: Cannot read property 'root' of undefined
at eval (eval at <anonymous> (), <anonymous>:1:61)
at
at Object.shadow$cljs$devtools$client$env$repl_call [as repl_call] ()
at Object.shadow$cljs$devtools$client$browser$repl_invoke [as repl_invoke] ()
at shadow$cljs$devtools$client$browser$handle_message ()
at Object.shadow$cljs$devtools$client$env$process_ws_msg [as process_ws_msg] ()
at WebSocket.<anonymous> ()
Either way. Do you mind sharing how you start your shadow-clj server? and your shadow-cljs.edn?
((nil . ((cider-clojure-cli-parameters
.
"-A:dev -m nrepl.cmdline -J-Dtrace -J-Dghostwheel.enabled=true --middleware '%s'"))))
The rest is pretty much this https://github.com/fulcrologic/fulcro3-template
ah and ~/.shadow-cljs/config.edn is set to
{:dependencies
[[cider/cider-nrepl "0.22.0-beta6"]]
:open-file-command
["emacsclient" "-n" ["+%s:%s" :line :column] :file]}