This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-09
Channels
- # announcements (16)
- # babashka (28)
- # beginners (27)
- # calva (39)
- # chlorine-clover (6)
- # cider (8)
- # clara (28)
- # cljs-dev (19)
- # cljsrn (22)
- # clojure (78)
- # clojure-australia (3)
- # clojure-europe (64)
- # clojure-nl (3)
- # clojure-norway (14)
- # clojure-spec (2)
- # clojure-uk (11)
- # clojurescript (11)
- # core-async (24)
- # datomic (3)
- # deps-new (5)
- # emacs (9)
- # fulcro (4)
- # gis (2)
- # graalvm (9)
- # honeysql (2)
- # hoplon (5)
- # instaparse (1)
- # introduce-yourself (5)
- # jobs (5)
- # luminus (4)
- # observability (7)
- # off-topic (6)
- # pathom (18)
- # pedestal (5)
- # polylith (4)
- # re-frame (2)
- # reagent (1)
- # reitit (1)
- # remote-jobs (7)
- # shadow-cljs (47)
- # specter (1)
- # sql (27)
- # testing (6)
- # tools-deps (4)
- # vim (3)
- # xtdb (8)
The todomvc mentioned above is a good simple example. For a more complex example re-frame-10x has an after
interceptor for saving db state to a localstorage key and a ::get
coeffect for loading data from a localstorage key. See https://github.com/day8/re-frame-10x/blob/master/src/day8/re_frame_10x/fx/local_storage.cljs for the impl and https://github.com/day8/re-frame-10x/blob/master/src/day8/re_frame_10x/panels/settings/events.cljs#L22 for save example and https://github.com/day8/re-frame-10x/blob/master/src/day8/re_frame_10x/events.cljs#L17 for a load example. In retrospect I would probably just rename those save
(instead of after
) and ::load
(instead of ::get
). @nicdaoraf
Thanks for the comprehensive info! I'll check it out later :)