Fork me on GitHub
#clojurescript
<
2018-04-29
>
tokoma00:04:50

Yes, I tried string but it doesn't work.

stathissideris09:04:54

is it ok to mix clj, cljs and cljc files under src/ or would it create problems (with tooling etc)

thheller10:04:23

@stathissideris totally fine. only might cause a problem if you use CLJS without a :main config. see https://code.thheller.com/blog/shadow-cljs/2018/02/08/problem-solved-source-paths.html

lxsameer13:04:57

hey folks, is it possible to use spec with js ?

stathissideris07:04:45

thanks, I think I’ll do the same because I dislike “heavy” directory trees

mfikes15:04:52

@lxsameer Can you narrow down your question, or provide a concrete example?

lilactown16:04:40

so I’m trying to convert a map to a JS obj, one level deep, that I am dynamically generating

lilactown16:04:47

what’s the best way to do this?

lilactown16:04:10

e.g. #js (merge {:foo foo} props) isn’t working, because it needs to be used with {} directly. but clj->js would convert all of my nested data into JS as well, which I don’t want.

joelsanchez16:04:46

you need to add a [goog.object :as gobject] require.

lilactown17:04:30

thanks that works great @joelsanchez!

👍 4
kwladyka19:04:53

Do you know good example of code re-frame vs om.next? The same task, but with 2 tools.

kwladyka20:04:09

Or even better fulcro vs re-frame code example

kwladyka21:04:27

I didn’t use fulcro, but intuition says me it lost all power with REST API. Better use re-frame then. Am i right?

joelsanchez21:04:11

re-frame is generic enough to serve as a powerful way to develop complex behaviors based on events/cofx/fxs, even in the backend

👍 4
joelsanchez21:04:59

it's not just "this useful thing we have that eases UI development", but "this mental model that allows us to construct complex applications"