This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-02
Channels
- # announcements (2)
- # babashka (10)
- # beginners (61)
- # calva (17)
- # cider (27)
- # clj-kondo (14)
- # clojure (230)
- # clojure-austin (4)
- # clojure-europe (17)
- # clojure-france (6)
- # clojure-hungary (3)
- # clojure-norway (30)
- # clojure-sweden (9)
- # clojure-uk (2)
- # clojurescript (58)
- # conjure (11)
- # core-async (7)
- # cursive (74)
- # datalog (2)
- # datomic (15)
- # events (8)
- # figwheel-main (5)
- # fulcro (2)
- # graalvm (23)
- # graphql (2)
- # helix (17)
- # humbleui (2)
- # jobs (2)
- # kaocha (6)
- # lsp (19)
- # malli (7)
- # nbb (51)
- # off-topic (33)
- # pathom (26)
- # pedestal (2)
- # polylith (1)
- # portal (4)
- # re-frame (17)
- # react (3)
- # reitit (5)
- # releases (2)
- # remote-jobs (2)
- # shadow-cljs (18)
- # sql (65)
- # tools-deps (8)
- # xtdb (28)
From the Matrix side, @colliderwriter, I will go check if this has succumbed to bit rot: https://github.com/kennytilton/matrix/tree/main/cljc/rxtrak That unifies HTML/CSS, localStorage, an async timer, Bide routing, and XHR handling in a unified reactive dataflow. brb.
Haha, I broke Matrix two days ago improving the diagnostics! No good deed...brb.
All better. 😅
I did find mxweb referencing an old mxxhr and fixed that. Still no luck. Then I gave up and bumped all the version numbers. But now I am wondering what happens if I deploy B which uses A, and then change A, and my app uses A and B. Anyway, not a figwheel issue. Sorry for the noise.
thanks for the reply, will read with interest
Oh, sorry, I meant my last post here to close out a question I had raised in the figwheel channel. Anyway, the aforementioned rxTrak project should build/run OK. btw, It got cosmetically awful when I got fancy with the auto-clock and "overdue" indicator, but I wanted to sneak that in as an example of how an app can be elaborated over time with new features, without much fuss. Enjoy.
ps. rxTrak is fine for those content to read code, but this write-up of a small app using the JS version of Matrix is chattier: https://tilton.medium.com/simplejx-aweb-un-framework-e9b59c12dcff DM me or continue on the #matrix channel if you have questions.
I just published this sample repo using helix with react-hook-form, fulcro for global app state, transactions, and networking, and subscriptions to get reactive UI https://github.com/matterandvoid-space/todomvc-fulcro-subscriptions
the main UI namespace is https://github.com/matterandvoid-space/todomvc-fulcro-subscriptions/blob/mainline/src/main/space/matterandvoid/todomvc/client/ui/main_page.cljs
thanks! been iterating on this sort of stack for a while now, feeling like I am finally settling on something useful/good. Really appreciate you creating and sharing helix! Love the design of just letting you use React and getting out of the way.
Look awesome @U051V5LLP, thanks for this repo. Have you check refx
(https://github.com/ferdinand-beyer/refx)
yep I saw it! great to see other innovation in the space. I don't agree with putting app-db as a static defonce
(precludes use in clojure as just one downside), but have been thinking about adopting refx
for the event side of the app (`dispatch`) and then implementing a :fulcro
effect for mutations. I think the purity of events/effects is quite nice for testing and fulcro doesn't have a good solution for side-effects from a functional programming point of view, but it's pretty low priority right now.
I have tested refx
with datascript
here (https://gist.github.com/jeans11/38fe1a66553546de531f0746dc8aae5c). Works fine.
right, you can achieve the same with re-frame - just put the datascript db under a top level key. You don't really need refx to work with helix. My subscriptions lib still uses reagents' reactive atom namespace, but none of the UI code. It adds ~9kb to the release build