Fork me on GitHub
#shadow-cljs
<
2022-04-29
>
pmooser08:04:22

@thheller If there are multiple functions in a namespace with :dev/after-load on them, is there any way to control the order of those calls? Or is it just top to bottom? Or some random order?

thheller08:04:53

simply don't have multiple of them?

thheller08:04:56

(defn ^:dev/after-load a [])
(defn ^:dev/after-load b [])

;; instead

(defn ^:dev/after-load reload []
  (b)
  (a))

pmooser08:04:15

Ok, nice idea - thanks. That's definitely something I can work with.

thheller09:04:12

otherwise the order is undefined, given that it is constructed from analyzer data which is an unordered map

Roman Liutikov12:04:07

Is it expected that a custom warning is not picked up by analyzer in release build? While it's working as expected in dev build. Not sure if it's cljs compiler itself or something is shadow-cljs. It's not clear why it's different from dev to release builds. I guess normally one should put custom warning names into compiler options.

Roman Liutikov12:04:46

Nevermind, works fine :thumbsup:

colinkahn17:04:32

Curious if the next release of shadow-cljs will be on 1.11 (Clojure)?