This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-06
Channels
- # adventofcode (54)
- # announcements (3)
- # babashka (34)
- # beginners (38)
- # calva (27)
- # cherry (5)
- # clj-kondo (34)
- # clojure (26)
- # clojure-bay-area (4)
- # clojure-berlin (3)
- # clojure-europe (26)
- # clojure-india (6)
- # clojure-nl (1)
- # clojure-norway (54)
- # clojure-uk (2)
- # conjure (3)
- # cursive (4)
- # data-science (1)
- # emacs (6)
- # events (4)
- # fulcro (2)
- # hugsql (6)
- # hyperfiddle (38)
- # lsp (3)
- # matrix (1)
- # membrane (5)
- # off-topic (27)
- # re-frame (3)
- # releases (1)
- # sci (8)
- # shadow-cljs (34)
- # squint (132)
How would streaming videos* work in electric? Websockets are used a lot for videos iiuc
websockets in videos?? I've never heard of that
I worked at Zencoder which is where the people from Mux came from
yeah, they're nice folks.
I didn't hear, no
does anyone use metaverse?
and why is twitch leaving korea?
well, best of luck with that. the Mux folks should either know how to do it or know how to figure it out
I haven't really followed Mux much, didn't know they did acquisitions, only heard about layoffs a few times
Newbie question no #2. I want to render a list of entities (Entity-item) which i read from the server (pull-table). When I edit, add or delete one I change the data on the server, but I'd like to only load the changes not the entire list so I don't want to reinstantiate the component. What are my options?
(e/defn Entity-list []
(let [!state (atom {})
state (e/watch !state)]
(e/server
(e/for-by :db/id [item (pull-table )]
(let [id (:db/id item)
name (:a.o.r.chat.pl/name item)]
(e/client (Entity-item. id name)))))))
I had the impression that swapping the client !state atom would be enough, but it's clever and doesn't do the server call again, so I need another approach.Do I read your code correctly, that the for-by
doesn’t depend on the state
. Or is it an input to pull-table
?
so, maybe for others:
(e/defn Entity-list []
(let [!state (atom {:ver 0})
state (e/watch !state)
ver (:ver state)]
(e/server
(e/for-by :db/id [item (pull-table ver)]
(let [id (:db/id item)
name (: item)]
(e/client (Entity-item. id name)))))))
when ver changes, the pull-table will be rerun and only the changes sent to the client and rendered.