re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
RafaΕ‚ Wyszomirski 2020-10-26T08:20:24.236200Z

@rberger Great stuff, thank you. I will check it out πŸ‘

Endre Bakken Stovner 2020-10-26T20:32:37.239Z

I have the following subscription:

(rf/reg-sub
 :highlight/result

 (fn [query-v]
   [(rf/subscribe [:fields/path]) (rf/subscribe [:fields/structure])])

 (fn [[fields structure] query-v]
   (js/console.log (str "Hi from reg-sub: " (type fields)))
   (js/console.log (str "Hi from reg-sub: " (type structure)))
   (str (highlight fields structure))))
When I try to print the types above I get Hi from reg-sub: function (meta,cnt... I expected both types to be a Clojure data structure. Is it to be expected that they are functions? I suspect it is an indication I am doing something wrong. Dunno what

Endre Bakken Stovner 2020-11-02T18:09:12.282700Z

Thank you for bothering to reply! It is very kind of you πŸ™‚

Endre Bakken Stovner 2020-11-02T18:09:29.282900Z

I have not had time to work on personal stuff until now, that is why no reply πŸ™‚

Endre Bakken Stovner 2020-11-02T18:09:51.283100Z

You are absolutely correct about dev-config. I wonder why it is not checked in by default.

Endre Bakken Stovner 2020-10-26T20:37:43.239100Z

https://github.com/endrebak/ouija/blob/master/src/cljs/ouija/events.cljs#L61 is where the weirdness happens if anyone is interested in taking a look πŸ™‚

seqable 2020-10-26T20:42:14.239700Z

not a template, but kee-frame is quite "batteries included", you might want to check it out

1πŸ‘
p-himik 2020-10-26T22:00:32.240700Z

I cannot run your project:

could not find a non empty configuration file to load. looked in the classpath (as a "resource") and on a file system via "conf" system property

p-himik 2020-10-26T22:03:03.240900Z

It wants dev-config.edn that hasn't been checked into the repo.

p-himik 2020-10-26T22:18:02.241100Z

Ah, got it running. And now I realize what's wrong. In hindsight, I should've seen it from the code. Keywords are functions. That's it. Don't wrap the arguments to js/console.log in str - you will see proper types if you're using cljs devtools.

p-himik 2020-10-26T22:18:25.241300Z

(`js/console.log` accepts any amount of arguments)