Fork me on GitHub
#clojurescript
<
2019-02-28
>
jeroenvandijk10:02:01

Does anyone know of a REBL-like initiative for in the browser via cljs?

lilactown15:02:06

it’s currently rough, but should be approaching usable ;)

jeroenvandijk07:03:07

@U4YGF4NGM Thank you for sharing. I need to study it a bit. I'm mostly looking for a simple data inspector i can put in my devcards as a kind of debugger of the state of my application. Not sure if your work is built for that purpose?

lilactown16:03:40

No, it's meant to be used along side your application as a separate tool

lilactown16:03:42

similar to REBL

lilactown16:03:16

something like https://github.com/Odinodin/data-frisk-reagent might be more what you're looking for

Raymond Ko15:02:48

Hello, I have a reagent + re-frame question. Say I have a button that when clicked dispatches an event which updates the global db, and the re-render adds a "disabled" CSS class due to an operation being in progress. The intent is to prevent double clicks from causing an action to happen twice. To my understanding both the dispatch and re-render is async, so is it possible on an abnormally slow system to have two clicks / dispatches queued before the CSS class makes it un-interactable?

borkdude15:02:58

@raymond.w.ko you can still have some local state (a r/atom) if you need it

lilactown15:02:03

@raymond.w.ko you can try testing that by throttling your CPU in chrome devtools

borkdude15:02:05

oh cool, I didn’t know that feature yet

ghiden19:02:55

Hello. How do you guys check security vulnerability for js modules? Since there is no package.json for usual cljs project, you can't really run npm audit. Just curious how this could be done in efficient way.

thheller20:02:41

you usually have a package.json when using shadow-cljs. 😉

thheller20:02:59

otherwise you probably just can create a package.json that includes the npm versions of the cljsjs packages you use?

ghiden20:02:14

I love shadow-cljs, but sadly I'm not using it for this project.

ghiden20:02:11

some cljsjs packages are not visible by just skimming dependencies in your project file.

thheller20:02:49

can maybe use lein deps :tree or so and filter out cljsjs/*?

ghiden20:02:50

i guess i need a little script to create a package.json just for this purpose

dnolen23:02:59

does cljs-devtools also work when debugging Node.js via Chrome?

darwin23:02:33

it should work, AFAIK