Fork me on GitHub
#clojurescript
<
2018-01-28
>
ackerleytng12:01:48

anyone familiar with re-frame and multiple panels? if re-frame advocates a single app-db, then why do we need multiple db.cljs files in each panel's folder?

souenzzo12:01:09

Try the #re-frame channel Why not {:panel1 db-1 :panel-2 db-2}?

mikethompson21:01:40

The db.cljs how schema information regarding the data needed for that panel, and possibly initial data. They don't hold an app-db

mikethompson21:01:56

But, yes, try the #re-frame channel

roti14:01:59

sigh, I'm struggling with an error for some time now, and have no idea how to pin down the problem. Any ideas?

Uncaught TypeError: Cannot convert a Symbol value to a string
    at Array.join (native)
    at Function.cljs.core.str.cljs$core$IFn$_invoke$arity$1 ()
    at Object.cljs$core$pr_writer_impl [as pr_writer_impl] ()
    at cljs$core$pr_writer ()
    at 
    at Object.cljs$core$pr_sequential_writer [as pr_sequential_writer] ()
    at Object.cljs$core$print_prefix_map [as print_prefix_map] ()
    at Object.cljs$core$print_map [as print_map] ()
    at Object.cljs$core$pr_writer_impl [as pr_writer_impl] ()
    at cljs$core$pr_writer ()

roti15:01:13

@rauh 🙂 thanks

roti15:01:16

i found the source problem in the mean time. i was calling a function where destructuring failed, and I guess the error I see occured while trying to print my error 🙂

mfikes15:01:29

There is a fairly large change in ClojureScript master to have maps return map entries (instead of 2-element vectors). In addition to cleaning thing up, this can result in a decent perf boost. If you are interested in giving them an early spin on your code, here is a preview of the change description: https://github.com/mfikes/clojurescript-site/blob/285e87234dda61376d288ba9176e42d83d20ef0a/content/news/2018-xx-yy-core-specs-alpha-reducible-sequence-generators-and-map-entries.adoc#map-entries Here's how to build master: https://clojurescript.org/community/building

justinlee18:01:40

hey does anybody have a functional workflow using atom/protorepl? I can’t tell if it is even supposed to work with clojurescript

mfikes18:01:30

If you maintain an open source library targeting ClojureScript consider adding it to Canary. This will help ensure that no changes to the ClojureScript compiler results in breakage of your project. https://github.com/cljs-oss/canary And if you use a library that is important to you, consider helping the maintainers accomplish this 🙂