Fork me on GitHub
#clojurescript
<
2016-12-02
>
chooie02:12:51

@martinklepsch Found a solution to the problem I was having, similar to the advice you offered:

(deftask data-readers []
  (fn [next-task]
    (fn [fileset]
      (#'clojure.core/load-data-readers)
      (with-bindings {#'*data-readers* (.getRawRoot #'*data-readers*)}
        (require '[wordroot-tasks.dev :as wordroot-dev])
        (next-task fileset)))))
Added that to my build pipeline. I also require my dev namespace (that uses the macro) after data-readers has been bound. Cheers again for all your help.

thedavidmeister02:12:34

so i’m looking at integrating some analytics with my cljs app

thedavidmeister02:12:53

async pub/sub channels looked like a good way to put data in and get it sent to various places

thedavidmeister02:12:16

but they seem to drop events that are received before a sub is ready to receive them

thedavidmeister02:12:41

so i guess if i try to track an event “too early” a subscriber might miss it

thedavidmeister02:12:48

am i doing this wrong?

martinklepsch02:12:06

@chooie awesome, glad you got it working!

hulunote02:12:03

@dpsutton , you can cider-connect the lein figwheel nrepl-port

dpsutton04:12:21

thanks for the info, stevechan. I can get this working in lein but i'm new to how to do the same things in boot

dpsutton04:12:32

in particular, I see the dependencies in project.clj for cljs and its associated repl helpers, but i'm not seeing it in the boot file generated by boot -d seancorfield/boot-new new -t hoplon -n address-book

imre11:12:19

Hey all.

imre11:12:41

Wondering if stuff like this is considered an anti-pattern in cljs:

imre11:12:00

(if (map? @some-atom)
  (dissoc @some-atom :error)
  @some-atom)

imre11:12:14

I'm referring to the multiple derefs of some-atom

imre11:12:23

I would consider it an anti-pattern but since cljs is supposed to be single threaded, I'm not sure what the public opinion is on stuff like this?

pesterhazy12:12:54

as you say, I don't think it matters much in cljs

pesterhazy12:12:12

maybe? (let [state @!state] (cond-> state (map? state) (dissoc :error)))

tbaldridge14:12:26

@imre, I'd consider it an anti-pattern since that's easier than remember the context in which the code is run, also this would give you lot of headaches if you ever wanted to port the code to the JVM

imre14:12:53

that's part of my thinking yeah

johanatan20:12:18

Hi, is there an accepted standard for AJAX calls from ClojureScript? cljs-ajax? jayq?

johanatan20:12:34

[or rather, what are most people using, pros/cons/etc]

bostonaholic20:12:47

I prefer cljs-ajax > jayq

jasonjckn20:12:47

anyone ever see this sort of error in advanced compilation?

ERROR: JSC_MISSING_PROVIDE_ERROR. required "admin.ui.listing_details.core" namespace never provided at /tmp-build-dir/resources/public/generated/js/admin/mutation/listing_details.js line 4 : 0
ERROR: JSC_MISSING_PROVIDE_ERROR. required "admin.ui.listing_details.core" namespace never provided at /tmp-build-dir/resources/public/generated/js/admin/ui/tabunion.js line 18 : 0
Successfully compiled "resources/public/generated/js/AdminUI.min.js" in 41.113 seconds.
i'm stumped, i'm triple checked the namespace declarations, and looked for circular dependencies, everything looks good

jasonjckn20:12:02

:none compilation works just fine

jasonjckn20:12:13

using the latest version of clojurescript compiler 1.9.293

anmonteiro21:12:17

@johanatan I think the easiest way is to just use goog.net.XhrIo

dnolen23:12:04

@jasonjckn just seems like a file is missing from the build