This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-11
Channels
- # admin-announcements (2)
- # beginners (53)
- # boot (151)
- # cider (11)
- # cljs-dev (60)
- # cljsrn (36)
- # clojure (71)
- # clojure-austin (13)
- # clojure-berlin (2)
- # clojure-czech (11)
- # clojure-dev (35)
- # clojure-dusseldorf (2)
- # clojure-france (6)
- # clojure-japan (9)
- # clojure-russia (183)
- # clojure-uk (18)
- # clojurescript (155)
- # cursive (6)
- # datomic (25)
- # euroclojure (6)
- # funcool (6)
- # hoplon (229)
- # instaparse (10)
- # jobs (9)
- # leiningen (5)
- # off-topic (70)
- # om (29)
- # onyx (18)
- # planck (1)
- # proton (5)
- # re-frame (8)
- # reagent (32)
- # untangled (4)
does re-frame has a middleware for local storage (in the meantime I am checking github)?
Their TodoMVC has examples on how to do it though: https://github.com/Day8/re-frame/blob/master/examples/todomvc/src/todomvc/db.cljs#L48 https://github.com/Day8/re-frame/blob/master/examples/todomvc/src/todomvc/handlers.cljs#L26
...that said, nothing prevents usage of project-specific middleware functions, there even is a guide on writing them: https://github.com/Day8/re-frame/wiki/Writing-Handler-Middleware
@d-side: I actually agree with you
I was thinking that it is just a one get at the "beginning" of the app
so no need for middleware to get, maybe to save, but ok, it is simple Javascript