This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-26
Channels
- # adventofcode (2)
- # announcements (7)
- # babashka (20)
- # beginners (77)
- # brompton (6)
- # calva (4)
- # clj-kondo (28)
- # cljdoc (2)
- # cljfx (10)
- # cljsrn (1)
- # cljtogether (1)
- # clojure (77)
- # clojure-europe (33)
- # clojure-gamedev (12)
- # clojure-uk (11)
- # clojurescript (95)
- # clojureverse-ops (4)
- # core-async (4)
- # core-logic (1)
- # cryogen (2)
- # cursive (14)
- # data-science (3)
- # datomic (47)
- # duct (1)
- # emacs (7)
- # fulcro (51)
- # gratitude (8)
- # helix (14)
- # hoplon (4)
- # improve-getting-started (60)
- # jobs (1)
- # jobs-discuss (4)
- # joker (11)
- # lsp (99)
- # meander (62)
- # membrane (5)
- # news-and-articles (3)
- # off-topic (64)
- # pathom (3)
- # polylith (11)
- # practicalli (7)
- # react (1)
- # reagent (8)
- # reveal (15)
- # shadow-cljs (78)
- # specter (7)
- # sql (16)
- # tools-build (1)
- # tools-deps (29)
- # workspaces (1)
- # xtdb (17)
@smith.adriane finally got a chance to try it out, it works very well, thanks again 👍
One thing that I noticed using the re-frame wrapper is that with terminal-resized
it does not work to use pure vectors to dispatch re-frame events like [[:some-event]]
, but it is not a big deal because there is a simple workaround of using (dispatch [:some-event])
explicitly.
So instead of:
(on :terminal-resized
(fn [new-size]
[[:set-terminal-size new-size]]))
I do:
(on :terminal-resized
(fn [new-size]
(dispatch [:set-terminal-size new-size])
nil))
ah, ok. I added support for extensible events like terminal-resized
in membrane.component
, but not for re-frame. Just need to do the same thing in the membrane.re-frame
One thing I realized with the terminal-resized event is that you need to create the view before firing the :terminal-resized
event and there's probably some use cases that want to know the size before creating the view
which makes me thing that having it as an event might not be the best fit and it should instead be a callback provided to membrane.lanterna/run