This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-29
Channels
- # babashka (168)
- # beginners (60)
- # calva (21)
- # cider (44)
- # clj-kondo (27)
- # cljs-dev (4)
- # cljsrn (2)
- # clojure (157)
- # clojure-australia (27)
- # clojure-bay-area (7)
- # clojure-czech (1)
- # clojure-europe (94)
- # clojure-nl (2)
- # clojure-spec (3)
- # clojure-sweden (11)
- # clojure-uk (35)
- # clojurescript (19)
- # cursive (12)
- # events (1)
- # figwheel-main (1)
- # fulcro (28)
- # honeysql (7)
- # jackdaw (9)
- # kaocha (4)
- # keechma (1)
- # malli (7)
- # midje (1)
- # missionary (1)
- # music (1)
- # off-topic (45)
- # pathom (18)
- # polylith (6)
- # practicalli (4)
- # random (1)
- # reagent (3)
- # reitit (3)
- # shadow-cljs (74)
- # sql (9)
Does anyone know have to make the cljsjs version of draft.js to work with reagent?
Any particular reason for using cljsjs? I know shadow-cljs allows you to directly consume npm libraries and I thought other cljs build tools did too.
Pretty new to cljs, so there is no clear reason. I'll try shadow-clj. Thank for the help :))
how do you work with promises? is skrat/promesa good? or do you recommend anything else?
the problem i'm facing is sequence of promises
i have a vector with objects which describes an http request
i want to execute them serially
Create a function that calls (.then response-promise (fn [result] ...))
and calls itself with (next parameters)
somewhere in the ...
.
Maybe Promesa has something specifically for this scenario, I don't know. I would still use regular interop.
okay, well promesa seems to tidy things a bit
This worked for me:
(:require
[cljs.core.async :refer [go]]
[cljs.core.async.interop :refer-macros [<p!]])
(go
; wait for the promise to complete before continuing
(let [result (<p! (fn-returns-a-promise))]
(println "Result" result)
(do-next-thing))
)
I've been noticing some warnings from test.check
about undeclared vars in goog.math.Long
from test/check/random/longs.cljs
when compiling a CLJS project that depends on test.check. I'd like to submit a bug report, but I don't have a JIRA account and it's not clear how to get one from https://github.com/clojure/test.check/blob/master/CONTRIBUTING.md. Can anyone assist or direct me to the right channel to ask this?
Moved to https://ask.clojure.org/index.php/10541/compilation-warnings-undeclared-clojure-check-random-longs
@dgtized The first step is to post it in http://ask.clojure.org
Thanks, I will check that.