This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-02
Channels
- # announcements (1)
- # beginners (15)
- # calva (6)
- # cider (72)
- # clojure (105)
- # clojure-europe (2)
- # clojure-france (1)
- # clojure-italy (4)
- # clojure-nl (2)
- # clojure-uk (32)
- # clojurescript (14)
- # code-reviews (10)
- # cursive (8)
- # data-science (2)
- # datomic (38)
- # events (1)
- # fulcro (31)
- # graphql (1)
- # hyperfiddle (47)
- # java (4)
- # jobs (4)
- # off-topic (18)
- # overtone (2)
- # parinfer (12)
- # pathom (19)
- # pedestal (4)
- # philosophy (2)
- # portkey (22)
- # re-frame (42)
- # reagent (1)
- # rum (1)
- # shadow-cljs (36)
- # specter (3)
- # tools-deps (2)
Has anyone managed to get devcards 0.2.6 working with shadow-cljs? The supplied example in https://github.com/shadow-cljs/examples/blob/master/deps-edn-re-frame-and-devcards/src/sniff/devcards.cljs doesn’t work for 0.2.6
Thanks, done that. It needs both React and ReactDOM. This got things working again, but I don’t see things updating visually (although I see the shadow HUD and the reloading of some files). I think I need to call something to re-render my reagent components, but I’m not sure what.
(defn ^:export main
[]
(js/console.log "starting devcards UI")
(dc/start-devcard-ui!)
(devcards.system/renderer @devcards.system/app-state))
It does do some weird stuff in there (setting up some core.async channel etc and listening for figwheel events etc). But the above snippet works. I also filed an issue about it.
I am trying to experiment with the ivi library but i got a "DEBUG is not defined" when i require it
ivi is a virtual dom framework : https://github.com/localvoid/ivi
shadow-cljs minimal : https://i.imgur.com/tgFJNuh.png
and package.json : https://i.imgur.com/vzIfwkJ.png
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Empty object.
*/
exports.EMPTY_OBJECT = DEBUG ? Object.freeze({}) : {};
//# sourceMappingURL=empty_object.js.map