This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-28
Channels
- # beginners (35)
- # boot (5)
- # cider (16)
- # cljs-dev (22)
- # cljsrn (11)
- # clojars (1)
- # clojure (205)
- # clojure-uk (19)
- # clojurescript (76)
- # cursive (22)
- # duct (4)
- # editors (1)
- # emacs (4)
- # fulcro (1)
- # hoplon (3)
- # leiningen (5)
- # off-topic (25)
- # onyx (29)
- # other-languages (5)
- # parinfer (1)
- # re-frame (13)
- # reagent (8)
- # reitit (2)
- # shadow-cljs (3)
- # tools-deps (11)
- # vim (6)
In an app with React Navigation, where each screen loads its own data, should each screen have its own reagent/atom
to hold the data?
Or should the data be in the re-frame db
? How is the screen associated with its data in the db? (Give each screen a gensym
…?)
Would we need to delete the data in the db
when the screen does component-will-unmount
to avoid holding on to unused memory?
@aaron51 I think you should take a look at the cljs react navigation library. There is a re-frame example over there that can help you clarify those questions
👍 4
What is the difference between [:> SomeComponent ...]
and [SomeComponent ...]
? ... hard to google the :>
keyword!