Fork me on GitHub
#re-frame
<
2021-05-20
>
Richie22:05:52

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)

p-himik22:05:17

To make sure we're not victims of the XY problem - why do you want to do it in the first place?

Richie22:05:06

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.

Richie22:05:33

I’m referring to what I see when I print with js/console .

Richie22:05:05

You’re right, this may not even solve my problem.

p-himik23:05:15

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.

Richie01:05:46

(day8.re-frame-10x.view.components/simple-render) Use of undeclared Var day8.re-frame-10x.view.components/simple-render

Richie01:05:09

Thanks for pointing that out though. I didn’t know.

Richie01:05:53

Oh I have 1.0.2 as a dependency right now.

superstructor08:05:39

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.

superstructor08:05:21

It is alpha for reasons though; known bugs and dragons abound.

Richie15:05:49

Thank you!