Fork me on GitHub
#fulcro
<
2019-07-04
>
tony.kay17:07:17

@bbss it is likely I just haven’t finished the bits needed for that in F3

tony.kay17:07:37

the functions are there, but I have not even looked at hoc stuff yet

tony.kay17:07:33

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

tony.kay17:07:30

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

bbss17:07:02

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.

PB17:07:26

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> ()

magra17:07:04

I typed it with components instead of primitives though because I am trying f3

PB17:07:09

fulcro.client.components?

magra17:07:23

The namespaces changed for fulcro 3.0

PB17:07:36

Ah. Maybe I should just start out with fulcro3

magra17:07:47

It is alpha

PB17:07:27

Either way. Do you mind sharing how you start your shadow-clj server? and your shadow-cljs.edn?

magra17:07:26

In .dir-locals.el I have

magra17:07:45

((nil . ((cider-clojure-cli-parameters
          .
          "-A:dev -m nrepl.cmdline -J-Dtrace -J-Dghostwheel.enabled=true --middleware '%s'")))) 

magra17:07:13

I jack in with shadow.

magra18:07:21

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]}

PB18:07:36

Awesome! I'll play around with this!

tony.kay18:07:42

NOTE: Fulcro 3 is still Alpha, as was mentioned. Do not take that lightly. I will be breaking things still.

tony.kay18:07:20

There is some more name refinement, in particular, that I need to do

PB18:07:38

I would expect nothing less

tony.kay18:07:06

that said, it is “working” 🙂