This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-31
Channels
- # aatree (1)
- # admin-announcements (3)
- # aws (3)
- # beginners (36)
- # boot (227)
- # cljsrn (27)
- # clojure (57)
- # clojure-czech (6)
- # clojure-miami (8)
- # clojure-poland (17)
- # clojure-russia (113)
- # clojurescript (9)
- # community-development (1)
- # core-async (11)
- # core-matrix (2)
- # core-typed (3)
- # cursive (3)
- # datomic (5)
- # editors (40)
- # emacs (6)
- # heroku (1)
- # hoplon (50)
- # incanter (1)
- # ldnclj (4)
- # luminus (3)
- # mount (1)
- # om (132)
- # onyx (5)
- # proton (3)
- # re-frame (5)
- # spacemacs (1)
- # testing (12)
- # yada (6)
I've updated my example of React Native application. It now saves all the data internally and restores the application state after reloading. It also became possible to remove cities (use long tap to do it). @drapanjanas also updated React Native and re-natal (thank you!). Seems like it is the most complex example of real-life React Native CLJS application, and I hope it is useful for community. https://github.com/alwx/luno-react-native
@alwx - will you summarize how you are doing the local data storage? Does it work cross platform. Will take a look at the code - not at computer currently.
@donmullen: it is much easier than saving data internally in native applications look here: https://github.com/alwx/luno-react-native/blob/master/src/luno/db.cljs If you want to save data, you need to call upsert! function this way:
(db/upsert! :city {:where {:name {:eq city}}} city-object)
Loading data is a bit more tricky, but simple too.has anybody thought about using datascript as a DB for RN applications?
I’d like to make datascript work with re-frame subscriptions, but haven’t done anything yet. There was a discussion here about the same https://github.com/Day8/re-frame/issues/36 looks like doable
@drapanjanas: What is your opinion about datascript in general?
@artemyarulin I like datomic and using it in backend of my free-time project. So I'd really like to try it as a db in front end application, though haven't used it so far
I’m just a bit confused that om-next kinda have their own language and the way how to work with state object, datomic pretty much does the same
RN 0.19.0 is out, noticed that packager now says [Hot Module Replacement] Server listening on /hot
does anybody knows how it works? Maybe some new figwheel’ish aproach is now possible?
@jellea: Are you using om-next or reagent?
what is your opinion about datascript in general?
Have mixed feelings about datascript on iOS. Think its one of the causes of our perf issues
oh, really?
how big is your DB? Everything is in memory, so I guess it should be damn fast?
oh yeah
do you know btw om-next? Does it make any sense to use datascript with it?
Looks like functionality overlaps
@jellea: Thanks for the info, I’ll have a look and play with datascript