This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-23
Channels
- # announcements (8)
- # babashka (12)
- # babashka-sci-dev (6)
- # beginners (62)
- # biff (5)
- # calva (4)
- # cider (2)
- # clj-commons (8)
- # clj-kondo (17)
- # clj-yaml (40)
- # clojars (3)
- # clojure (117)
- # clojure-europe (122)
- # clojure-nl (5)
- # clojure-norway (20)
- # clojurescript (10)
- # consulting (1)
- # datomic (65)
- # events (15)
- # figwheel (1)
- # fulcro (4)
- # lsp (15)
- # mount (15)
- # music (1)
- # off-topic (53)
- # polylith (12)
- # releases (3)
- # shadow-cljs (13)
- # sql (1)
- # test-check (8)
- # xtdb (31)
is there a browser tool that will pprint edn data that’s being sent in network requests?
Maybe it's Reagent-specific, not sure, but you can write the above as [:a {:class [:group :block :max-w-xs ...]} ...]
.
I know this way of doing it but I was looking something more close to hiccup notation, so I did it in my way: https://clojurians.slack.com/archives/CG3PNFDUJ/p1664112392795999?thread_ts=1663952776.824039&cid=CG3PNFDUJ
how do I use js/require
as shown here https://clojurescript.org/guides/promise-interop? my code compiles but it says require is not defined
so would that mean i need to do something like
(ns foo.core
(:require [cljs.nodejs :as node]))
(def fs (node/require "fs/promises"))
(def f (.readFile fs "filename"))
and then work with promises bc I don't think this is working either