This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-20
Channels
- # adventofcode (7)
- # announcements (1)
- # aws (1)
- # babashka (127)
- # bangalore-clj (1)
- # beginners (54)
- # calva (8)
- # cider (12)
- # clj-http (2)
- # clj-kondo (8)
- # cljdoc (10)
- # cljs-dev (2)
- # clojure (48)
- # clojure-australia (14)
- # clojure-dev (6)
- # clojure-europe (105)
- # clojure-nl (6)
- # clojure-taiwan (1)
- # clojure-uk (62)
- # clojurebridge (1)
- # clojurescript (112)
- # code-reviews (4)
- # cursive (20)
- # data-science (1)
- # depstar (1)
- # events (8)
- # fulcro (6)
- # graalvm (11)
- # honeysql (2)
- # introduce-yourself (3)
- # jobs (1)
- # jobs-discuss (30)
- # malli (23)
- # nrepl (4)
- # off-topic (47)
- # pedestal (22)
- # polylith (10)
- # portal (3)
- # re-frame (16)
- # reitit (9)
- # releases (3)
- # rewrite-clj (1)
- # ring (1)
- # spacemacs (1)
- # tools-deps (12)
- # xtdb (7)
Hey. I’m interested in using simple-render
from re-frame-10x
but I don’t know how to require it.
The usual doesn’t work.
(ns
(:require [day8.re-frame-10x.components.cljs-devtools :as cljs-devtools]))
(cljs-devtools/simple-render)
Neither does this.
(day8.re-frame-10x.components.cljs-devtools/simple-render)
To make sure we're not victims of the XY problem - why do you want to do it in the first place?
I wanted to stick the cljs devtools output in my app. I found a thread that pointed to re-frame-10x since devtools itself doesn’t output html. It’s some format specific to the browser.
I see.
So where did you get the day8.re-frame-10x.components.cljs-devtools
namespace? At least in the 1.0.1 version of re-frame-10x namespace that has simple-render
is day8.re-frame-10x.view.components
.
I was looking here: https://github.com/day8/re-frame-10x/blob/master/src/day8/re_frame_10x/components/cljs_devtools.cljs
(day8.re-frame-10x.view.components/simple-render)
Use of undeclared Var day8.re-frame-10x.view.components/simple-render
Yeah I've done major refactoring on master; the api is probably a bit cleaner now but you'd need 1.1.0-alpha2
to use the ...components.cljs-devtools
ns.
It is alpha
for reasons though; known bugs and dragons abound.