This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-02
Channels
- # aleph (14)
- # boot (4)
- # cider (3)
- # clara (1)
- # cljs-dev (62)
- # cljsrn (20)
- # clojure (81)
- # clojure-berlin (2)
- # clojure-russia (76)
- # clojure-spec (35)
- # clojure-turkiye (1)
- # clojurescript (84)
- # cursive (2)
- # data-science (6)
- # datomic (4)
- # hoplon (92)
- # lumo (35)
- # om-next (1)
- # pedestal (2)
- # re-frame (2)
- # reagent (36)
- # ring-swagger (10)
- # unrepl (30)
- # untangled (124)
@dnolen @wildermuthn I just tested out reverting the following commit: https://github.com/clojure/clojurescript/commit/cdaeff298e0f1d410aa5a7b6860232270d287084 in order to fix the Node reloading issue in figwheel
bhauman: Thanks for following up on this. Had hoped to get time to test it out, but … life. 🙂
I guess maybe this indicates that there aren’t a lot of people using figwheel with node.js, at least on the latest versions. Which is too bad, because it really is an amazing dev experience to have reloading both on the server and client.
I mean, that the issue queue in figwheel wasn’t larger.
is there a way i can get an atom of a part of an existing atom? for example, if i have an atom that is a map with some key :user
, i want to be able to create an atom that represents the value of :user
, to control which parts of my app have access to a specific parts of an atom map
atoms don't do this, but reagent atoms allow cursors that behave this way
well, that sounds nice, but does reagent support server side rendering in ring? i am using rum
in cljs since there's no threading, there's no harm in just using multiple atoms though
I haven't used it, and don't know how it compares to rum at all, but it exists https://github.com/reagent-project/reagent-cookbook/tree/master/recipes/reagent-server-rendering
@cjhowe looks like rum has cursors too https://github.com/tonsky/rum
I couldn't find a link directly to it, but if you search cursor on that page, looks like it does what you want
Can anyone tell me what the 😆 symbol refers to?
@stuartrexking someone in #reagent can probably answer that
Hi, Given:
(some-func some-arg (fn [err metadata]
(if err(println err)
(println metadata))
How would one go about dealing with this in a asynchronous way? Basically, I'm trying to build a map to ship over to my 'render thread' in electron.I've got a funny feeling about about to learn how core.async works though 🙂
how it works or how to use it?
How to use it... I basically need a way of calling a async function and waiting to built a map from it and ship it in one go... feels a little like an anti-pattern...
@thheller I can’t seem to see anything in the reagent docs. Any hints?
no idea, never used reagent. looks like it has to do with native interop? ie. using a native JS component
Ok. Thanks.
@stuartrexking :>
is for using react components.
[:> TitleBar {:controls true :inset true :style {:z-index "1000"
:position "fixed"
:top 0}}
[:> Toolbar {:height "43"
:horizontalAlignment "center"}]]
Yes, but what does that mean? What does it do? What does it refer to?
You can use react components without 😆
Its just syntactic sugar for react-create-class
@crankyadmin you may find this useful, I had a similar question https://stackoverflow.com/questions/39291779/idiomatic-conversion-of-node-js-apis-to-clojurescript
Cheers man... thats exactly what I'm after.
@stuartrexking > You can use react components without 😆 Not quite... See: https://reagent-project.github.io/news/news060-alpha.html "Better interop with native React"
Thanks. I was using adapt-react-class.
@cjhowe in addition to Rum's cursors and derived-atoms you may find interesting this list of libs: https://metametadata.github.io/carry/faq/#is-there-a-way-to-code-a-view-model-if-i-dont-use-reagent For atom "entanglement" there're also these solutions: https://github.com/Frozenlock/entanglement, https://github.com/rymndhng/entangle And here's my solution to "read-only" entanglement: https://github.com/metametadata/carry/blob/143877b3e07f2d530ed0923f2f81cc06a94c5413/src/carry/core.cljc#L54
is there a guide one can follow to publish a cljs package?
Anyone running into a Use of undeclared Var cljs.js/lib
warning with 1.9.671? Doesn't happen to me with 1.9.660
:modules
enhancements coming very soon. If you feel like giving this a run through https://gist.github.com/swannodette/6150d4213aeb9eba31e03ae522af4425, that would be helpful
the surface is boring, but hides a pretty massive change set - so if you try this also try the build on your own projects
also this guide should make it clear why having a resolve
macro now is actually useful 🙂
so, say, electron app might have 1 build that produces 2 files - for main and renderer, right?
@yury.solovyov I don’t know Electron dev that well - but is advanced compilation a thing there?
yes, at least for browser-side
main uses CJS from npm, so might be not as safe to use it there
well, one might not use npm at all, and then yes, should be safe on both
ok, cool anyway
@bhauman I’m assuming this case just blows up or something because of bad path computation logic
@bhauman https://github.com/clojure/clojurescript/commit/5c48ff8c583fcfc1d1c723073e333f9ba65e847a