This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-08
Channels
- # aleph (7)
- # announcements (12)
- # babashka (19)
- # beginners (4)
- # calva (29)
- # cider (20)
- # clj-kondo (20)
- # clojure (66)
- # clojure-austin (4)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (42)
- # clojure-uk (4)
- # clojuredesign-podcast (9)
- # conjure (1)
- # cursive (5)
- # datomic (42)
- # etaoin (4)
- # events (10)
- # garden (8)
- # graphql (1)
- # holy-lambda (7)
- # honeysql (3)
- # hyperfiddle (5)
- # missionary (11)
- # music (1)
- # off-topic (12)
- # practicalli (2)
- # re-frame (2)
- # reitit (6)
- # releases (2)
- # vim (2)
- # web-security (1)
- # xtdb (3)
Is there a way to dispatch an event from the js console OR obtain slice of app-db? Have a debug event in prod (so no re-frame-10x or similar) that copies a slice of state to clipboard for making easy bug reports.
Nothing you can do in prod without some extra things since everything's minimized. One such "extra thing" could be something like:
(ns app.whatever
(:require [re-frame.core])
(defn ^:export copy-state []
(rf/dispatch [:copy-state]))
And then from the JS console you'd be able to call app.whatever.copy_state()
.🙏 1