Fork me on GitHub
#clojurescript
<
2019-09-12
>
deadghost14:09:55

Anyone using pushy know the right way to navigate to an url in cljs such that the url in the browser bar changes and pushy's match and dispatch fns get executed?

deadghost14:09:42

(set! (.-href js/location) "/some/path") triggers a full reload

deadghost14:09:19

and I get circular dependencies issues with pushy/set-token!

dnolen14:09:43

@jplaza it should work but it's possible there is a bug

jplaza17:09:08

I think there is. It seems that this line is responsible for appending sourceMappingURL to the resulting file https://github.com/clojure/clojurescript/blob/8f38049d543b04b8da55029f140b6577e3ec245a/src/main/clojure/cljs/closure.clj#L2183 and there is no reference to :source-map-asset-path.

deadghost15:09:10

Ended up doing it through re-frame

awb9915:09:54

Is it possible to pass clojurescript functions to javascript?

awb9915:09:24

I am writing reagent wrapper for a js charting library, and on chart creation I have to pass it functions that load data.

awb9916:09:51

very cool

awb9916:09:57

could you point me to the right direction?

danbunea16:09:46

Hi everyone, I intend to publish an article on my companie’s articles section, called: How to solve it? Crafting web apps using finite state machines. I put the first part here: https://danbunea.blogspot.com/2019/09/how-to-solve-it-crafting-web-apps-part-i.html

danbunea16:09:10

All the code is reagent/clojurescript

danbunea16:09:53

I also added some things such as design by contract using pre/post and clojure.spec

danbunea16:09:04

and atomicity in operations (all or nothing). All the code was test driven (TDD), including the UI and is here:

danbunea16:09:41

and it could be resumed in very few images

jplaza17:09:08

I think there is. It seems that this line is responsible for appending sourceMappingURL to the resulting file https://github.com/clojure/clojurescript/blob/8f38049d543b04b8da55029f140b6577e3ec245a/src/main/clojure/cljs/closure.clj#L2183 and there is no reference to :source-map-asset-path.

Lone Ranger21:09:16

anybody know a good library for working for js/FormData?

Lone Ranger21:09:55

or does everyone just use interop?

dominicm09:09:29

Form juice iirc. But also interop, yah