This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-24
Channels
- # announcements (1)
- # aws (140)
- # beginners (41)
- # calva (47)
- # cider (43)
- # clj-kondo (36)
- # clojure (178)
- # clojure-europe (12)
- # clojure-gamedev (2)
- # clojure-italy (1)
- # clojure-nl (17)
- # clojure-russia (3)
- # clojure-spec (37)
- # clojure-uk (97)
- # clojurescript (173)
- # core-async (16)
- # cursive (18)
- # data-science (2)
- # datascript (6)
- # datomic (32)
- # dirac (16)
- # duct (16)
- # events (2)
- # figwheel-main (7)
- # fulcro (8)
- # graalvm (18)
- # immutant (3)
- # joker (2)
- # kaocha (8)
- # nrepl (6)
- # nyc (2)
- # off-topic (62)
- # quil (3)
- # re-frame (18)
- # reitit (6)
- # ring-swagger (1)
- # shadow-cljs (119)
- # spacemacs (4)
- # specter (2)
- # tools-deps (10)
- # vim (58)
- # xtdb (9)
For anyone using Datascript on the frontend: added tuple values & pull-many
to posh "0.5.7"
& re-posh "0.3.1"
. Thanks to denistakeda for taking over Posh maintenance & cutting these releases.
https://github.com/denistakeda/posh
https://github.com/denistakeda/re-posh
Thats great. I'm going to try and evaluate a small project using re-posh. At the same time as fulcro. Re-posh has the same interaction with react's framework as re-frame right?
@U0DJ4T5U1 Can you clarify the question? (Re-posh doesn't interact with re-frame directly. It just provides the "re-frame wiring" over Posh & re-frame. Posh is the underlying library provides the "reactive atoms" over Datascript. Re-frame is the only piece that touches react [through its own dependency, Reagent.])
I see, I temporarily forgot that reframe has nothing to do with react really. So my question was confusing in two ways. I suppose im curious how the reactive atoms are built.
I don't think I could give a satisfactory answer on that, as there's quite a bit of magic going on there still for me. I did a bit of digging though:
Posh references reagent.ratom/make-reaction.
https://github.com/denistakeda/posh/blob/master/src/posh/reagent.cljc#L21
Posh's own usage of make-reaction: https://github.com/mpdairy/posh/blob/413337f07a564fa35c731b8d00d5cf511cd6609c/src/posh/plugin_base.cljc#L90
Reagent writeup on how reactions work: https://github.com/reagent-project/reagent/blob/d28b16e11d7f3500e490563f1ea0a615354b5478/doc/ManagingState.md#reactions
Code definition of make-reaction
:
https://github.com/reagent-project/reagent/blob/88e9833be9c3135548d760286ffd84d88a0a0489/src/reagent/ratom.cljs#L512