This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-06
Channels
- # aleph (15)
- # announcements (2)
- # babashka (121)
- # beginners (62)
- # biff (6)
- # cherry (2)
- # cider (51)
- # clerk (30)
- # cljs-dev (5)
- # clojure (77)
- # clojure-austin (2)
- # clojure-europe (10)
- # clojure-germany (6)
- # clojure-nl (1)
- # clojure-norway (19)
- # clojure-romania (1)
- # clojure-uk (3)
- # clojurescript (16)
- # core-typed (7)
- # cursive (17)
- # datomic (12)
- # deps-new (11)
- # emacs (7)
- # events (2)
- # fulcro (5)
- # honeysql (2)
- # hyperfiddle (32)
- # introduce-yourself (1)
- # jobs-discuss (2)
- # membrane (18)
- # missionary (2)
- # music (5)
- # polylith (7)
- # reagent (26)
- # releases (5)
- # testing (32)
- # tools-build (14)
- # tools-deps (7)
- # xtdb (8)
we have not thought about module splitting yet, but after the current incremental compiler workstream lands this will be closer at least
https://github.com/JJ-Atkinson/electric-data-viewer
I'm not entirely sure why this is borked. I'm inferring that e/hook is cooking up some failures, due to moving the dom/text
nodes around. Not sure why they are being moved though. The goal with this code is to make a server-walked viewer for data, so java objects can be arbitrarily inspected.
Should be a relatively small proj - it's based on electric starter app. LMK if I need to trim it down to an MVP or if this is close enough to minimal to be understood
ty, what is mount-watcher ?
or rather what are you using mutationobserver for
the viewers don't know anything about children, they just mount dom objects of ::view-options/id id and let children hang off that id by binding dom/with
at t=0 the table is rendered, and the dom elements for rendering A and B are attached. t=1 those two elements are seen and children for viewers are mounted
oh, without looking (on mobile) rebinding dom/node is undefined behavior in electric v2. this is supported in v3 which isn’t out. Because obviously it’s surprising for that to be UB and it’s a perfectly reasonable thing to want to do and quite powerful. In the meantime can this be expressed without rebinding dom/node?
Maybe. I'll give it a try. Sorry didn't know dom/with isn't supported 😬 - guess it makes sense that that's borked behavior
yeah i now see you’re calling dom/with not rebinding dom/node, i need to go oook at the src when back at my desk later
got it to work basically in place with an atom of anonomized e/fn []
atoms. Pushed if you are interested.
i will try to look, good job figuring that out
i've had that exact same error rebinding node
to js/document.body. workaround was to change render order for some reason
rebinding?
Who wants to build a music streaming service with electric and me 😄 I think Electric is a great fit for such a project It's such a huge undertaking; I was wondering: is there a clean way to stream audio via the websocket connection? That's my biggest/fuzziest/vaguest spot right now.
i would use a raw websocket for something like that today, use electric for the UI parts (you can have N websockets)