untangled

NEW CHANNEL: #fulcro
claudiu 2017-05-26T10:42:18.449542Z

@tony.kay awesome. Works now, But having a bit of trouble with getting the css in advanced mode.

claudiu 2017-05-26T10:43:03.457763Z

(defui ^:once Root
  static css/CSS
  (css [this] [[(css/local-kw Root :class1) {:color 'blue}]]) 

  Object
  (render [this]
    (dom/div nil
      (dom/p nil "text")
      (dom/style nil (g/css (css/css Root))))))

claudiu 2017-05-26T10:43:45.465437Z

tried other approaches but I keep getting No protocol method CSS.css defined for type function

claudiu 2017-05-26T10:44:42.476077Z

to much of a beginner to have any chance at figuring out a fix, for these kinds of problems unfortunately

tony.kay 2017-05-26T15:26:47.907333Z

There is a get-css function. Server side needs you to use it.

claudiu 2017-05-26T15:51:29.419618Z

@tony.kay don't understand :(

claudiu 2017-05-26T15:53:16.456885Z

On dev it works, in advanced mode css/css Root gives me that error. Upsert-css also :(

claudiu 2017-05-26T15:53:46.467100Z

Only testing with js build now.

claudiu 2017-05-26T15:55:04.494159Z

Think it was happening for 1.0.1 also

tony.kay 2017-05-26T16:07:49.760942Z

I ran the cookbook recipe against 1.0.2 with updated om version alpha48 in advanced mode and it worked. Look ar the source of that example?

tony.kay 2017-05-26T16:21:31.021988Z

@claudiu I just pushed an update to untangled cookbook with my changes there.

tony.kay 2017-05-26T16:23:07.052005Z

the project file has the version of deps I used to get it to work. Running lein cljsbuild once release followed by

cd resources/public
open release.html
(open command assumes you have a mac)

tony.kay 2017-05-26T16:24:17.073771Z

though I just noticed there is a defrecord in there, and that should not be done anymore. only works on the server

tony.kay 2017-05-26T16:24:54.085428Z

and sorry, the method is named call-css.

tony.kay 2017-05-26T16:25:06.089225Z

it is what you should use to call the css method on a component

tony.kay 2017-05-26T16:27:19.130948Z

ooops…hold on. The push didn’t go

tony.kay 2017-05-26T16:31:20.208040Z

it’s pushed now

tony.kay 2017-05-26T16:32:18.226780Z

argh…wtf…it lost a file

tony.kay 2017-05-26T16:36:17.300456Z

ok, should work now