This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-07
Channels
- # babashka (30)
- # beginners (49)
- # calva (22)
- # cider (9)
- # clara (2)
- # clj-commons (1)
- # cljdoc (1)
- # clojars (7)
- # clojure (153)
- # clojure-australia (2)
- # clojure-europe (45)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-nl (17)
- # clojure-portugal (3)
- # clojure-uk (6)
- # clojurescript (21)
- # conjure (4)
- # copenhagen-clojurians (5)
- # cryogen (3)
- # cursive (19)
- # datahike (14)
- # datascript (4)
- # datomic (9)
- # events (5)
- # fulcro (23)
- # graalvm (1)
- # gratitude (4)
- # helix (2)
- # holy-lambda (5)
- # improve-getting-started (2)
- # jobs (10)
- # kaocha (1)
- # leiningen (1)
- # liquid (8)
- # membrane (81)
- # off-topic (88)
- # polylith (29)
- # quil (1)
- # reitit (2)
- # remote-jobs (8)
- # reveal (8)
- # sci (1)
- # shadow-cljs (14)
- # specter (4)
- # sql (5)
- # tools-build (11)
- # tools-deps (5)
@anshbenew need more context. standalone isolated repro
Defined (def is-test (r/atom true))
in reagent and when I try to reset this value it is still showing true.
showing true where? because if it’s in a view – then you may be missing keying aspect of reagent so a more complete ns example is indeed required, as borkdude asked
I understand, but this is not enough information to diagnose your problem. You need to show us your code or an isolated reproduction of your problem.
One problem could for example be that you are using a form-2 component and are dereferencing the atom outside of the returned function. Etc.
Yes, I have two component one is main.cljs
and other is form.cljs
I have declared my atom in form.cljs
as (def is-test (r/atom true))
and then I am setting its value as false from main.cljs
but when I am trying to print that value in form.cljs
it is printing true only.
Make a single example.cljs
file with a stripped down version of your problem and paste it as a http://gist.github.com
Anyone worked with Vega?
Is it possible to snatch out the layout data out of it? Maybe @metasoarous with his wonderful “Oz” knows how.
I’m drawing a tree graph, and d3.layout.tree(root).nodes()
in the end has the x,y coordinates for where the nodes should be.
Hey @ognivo! You're in luck; I just added a :view-callback
option to the oz/vega
and oz/vega-lite
components, so that you can capture the vega.View
object, and use the view
api to get at this information.
whoa, thanks a lot Christopher! in luck indeed
This is admittedly not particularly ergonomic, but I do have plans to add more convenient listener functions so that you don't have to hack around with the view
api directly: https://github.com/metasoarous/oz/issues/13
It's nice to start with the view
api though, since then you get access to everything it has to offer and can "go nuts". But conveniences to boot will be nice.
You can try all of this out on 1.6.0-alpha35
PS There is a #datavis channel should you care to continue discussions over there without cluttering up the #clojurescript channel.
Anyone ever consumed a :target :bundle
CLJS lib from TypeScript? Can't seem to figure out how to import it correctly on the TypeScript side.
Are you using shadow-cljs?
The npm-module
target might help
I wasn't but concluded that I probably need to be 🙂