This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-25
Channels
- # announcements (21)
- # babashka (7)
- # beginners (27)
- # calva (7)
- # chlorine-clover (3)
- # cider (1)
- # clerk (21)
- # clojure (24)
- # clojure-europe (28)
- # clojure-finland (3)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-uk (2)
- # clojurescript (13)
- # clr (2)
- # conjure (1)
- # consulting (1)
- # datahike (1)
- # datomic (13)
- # fulcro (3)
- # graalvm (33)
- # gratitude (7)
- # honeysql (7)
- # humbleui (12)
- # hyperfiddle (26)
- # interop (11)
- # introduce-yourself (4)
- # jobs-discuss (8)
- # lsp (26)
- # malli (6)
- # nbb (11)
- # polylith (26)
- # practicalli (1)
- # rdf (3)
- # re-frame (7)
- # reitit (10)
- # releases (2)
- # shadow-cljs (1)
- # tools-deps (15)
Hello! What is the most idiomatic way of opening an alert when the user is trying to leave the page?
and where I can find some documentation about doing that?
On the re-frame's website. :) The TOC and search should work just fine, and there are examples there as well.
I can't see a way to trigger the event the same way onbeforeunload would do it. I think I would have to just add the event there
So, something calls js/alert
or something like that.
That caller is an effect that you have to write.
That effect will be used by an event handler, one that you also have to write.
The event will be dispatched from somewhere, and that somewhere is probably a regular JS event handler for beforeunload
.