This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-10
Channels
- # announcements (1)
- # babashka-sci-dev (16)
- # beginners (5)
- # calva (3)
- # cider (42)
- # clojure (103)
- # clojure-europe (79)
- # clojure-nl (2)
- # clojure-norway (17)
- # clojure-sweden (2)
- # clojure-uk (8)
- # clojurescript (7)
- # community-development (7)
- # core-async (1)
- # core-typed (18)
- # cursive (9)
- # data-science (1)
- # dev-tooling (14)
- # events (1)
- # fulcro (2)
- # hugsql (2)
- # hyperfiddle (1)
- # leiningen (7)
- # malli (11)
- # re-frame (14)
- # releases (9)
- # ring (18)
- # shadow-cljs (55)
Just as an FYI following snippet,
(dom/span
(dom/props {:class "badge badge-info"})
(let [size (-> (get-in state [:events :storage])
(/ 1024)
(/ 1024))
size (cond (zero? size) "0 MB"
(< size 1024) (str ( "%.2f" size) " MB")
:else (str (gstring/format "%.2f" (/ size 1024)) " GB"))]
(dom/text size)))
worked fine on v2-alpha-469-gb6d9865c
for both prod and dev builds, however on v2-alpha-540-ga4699532
it works in dev build but fails on prod build [1]. Replacing gstring/format
with toFixed
solves the issue. @dustingetz
[1] https://gist.github.com/nakkaya/a4d441f93b30d6136f8a6343cc1d327d👀 1
👍 1