Fork me on GitHub
#clojurescript
<
2020-03-31
>
teh0xqb00:03:29

@mario.cordova.862 I would ask under #reagent . My 2 cents is that adding a jquery widget onto a component lifecycle fn complicates things. Have you considered using a react-compatible input mask like https://github.com/sanniassin/react-input-mask ?

Mario C.01:03:18

Yea I saw that but I'm trying to make a fix without changing too much. But I was able to figure out how to apply the inputmask on the component.

๐Ÿ‘Œ 4
Vishal Gautam17:03:54

does anyone know how to do no hash routing with reitit on clojurescript apps

isak17:03:40

I think it is turned on with this flag (useFragment), so you can just set it to false: https://github.com/metosin/reitit/blob/master/examples/frontend-re-frame/src/cljs/frontend_re_frame/core.cljs#L112-L115

๐Ÿ’ฏ 4
isak17:03:05

This assumes your webserver is set up correctly to handle this type of routing

Vishal Gautam18:03:42

@U08JKUHA9 thanks man ๐Ÿ™‚

๐Ÿ™‚ 4
dangercoder21:03:49

Im trying to write some sane tests for my application that runs on nodejs. I am using promises heavily. What kind of testing libraries do you use? I am currently using cljs.test with the async-macro but would like to know if there are "nicer" options.

mccraigmccraig21:03:05

i don't like the vanilla cljs.test async provisions much, and i also have async clj/cljc code i wanted to test, so i hacked together something promise-based i could use on both clj and cljs: https://gist.github.com/425c5a2b57adaf36afb09e8099466e31

mccraigmccraig21:03:56

it leads to promise-based tests like this https://gist.github.com/ce81f2dca70414ade20352895b17d462 which run on both clj and cljs

mccraigmccraig22:03:07

but the messing with the threadBindingFrames - to make it work with clojure.test - yeuch :face_vomiting:

souenzzo23:03:44

http://github.com/wilkerlucio has a cool async lib that I cant remember the name.