This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-22
Channels
- # beginners (24)
- # boot (80)
- # braid-chat (11)
- # cider (89)
- # clara (11)
- # cljsfiddle (5)
- # cljsjs (9)
- # cljsrn (63)
- # clojure (114)
- # clojure-austin (1)
- # clojure-berlin (5)
- # clojure-brasil (4)
- # clojure-dusseldorf (5)
- # clojure-hamburg (17)
- # clojure-india (1)
- # clojure-new-zealand (3)
- # clojure-poland (1)
- # clojure-russia (91)
- # clojure-taiwan (1)
- # clojure-uk (54)
- # clojurebridge (3)
- # clojurescript (170)
- # core-matrix (1)
- # cursive (14)
- # datomic (8)
- # emacs (13)
- # hoplon (96)
- # immutant (20)
- # jobs (9)
- # jobs-rus (13)
- # kosmos (3)
- # off-topic (8)
- # om (111)
- # onyx (41)
- # parinfer (116)
- # pedestal (2)
- # proton (4)
- # re-frame (46)
- # reagent (7)
- # ring-swagger (24)
- # slack-help (2)
- # testing (1)
- # untangled (8)
(nevermind, found a good example with luno: https://github.com/alwx/luno-react-native/blob/master/src/luno/db.cljs)
@drapanjanas: (or anybody else) Have you checked RN hot reloading? Is it any good? Just wondering if we can drop figweel approach and use the existing one
@artemyarulin not yet, but it is interesting how it works. Though, I got impression (I did not measure anything, just felt like) that Figwheel reloads/reacts faster when HMR is off and packager is not watching files (started with —nonPersistent
option)
@jellea: The problem was that I had enabled ”Live Reload” in the simulator’s debug menu...
@vikeri: oh lol, yeah that wont work. Would be good to document somewhere, bumped into that one time as well
drhops: we've started using realm https://realm.io/
@michaelr: How do you work with Realm, writing on each event and then just loading everything into an atom at startup or do you read directly from realm (skipping the atom entirely)?
well.. we've just started, so far i've only been reading data from realm and passing it forward without updating the state atom
@michaelr: Curious - are you using re-natal?
how do you like it so far? I mean om-next? In theory it should be the best for the mobile
so far it's been a pain to understand some of the concepts and to find the right approach.. check back in two weeks and i'll tell you better
@jarradhope: Here's where I'm at right now: https://gist.github.com/petterik/4a80bd5ecba37ed1ea71 Not sure what flaws this approach has. It's based on subquery routing found here: http://anmonteiro.com/2016/02/routing-in-om-next-a-catalog-of-approaches/
@michaelr: I’ve been straggling with om-next understanding for 3 months already 😄 But I hope you will get it faster. Are you going to use backend?
artemyarulin: yes but only for a few things.. most of the data would be on the device
thanks @petterik taking a look now
I really gave om-next a serious eval and it just didn’t seem baked enough to use in a react-native project unless you didn’t plan on interoperating with existing react components. So you’d have to write your own router, tab system, etc. That was just way too much for me to take on.
Hey, does anyone here have an elegant solution for using ListView’s? I really don’t understand why Facebook is requiring that we create a datasource as a plain javascript structure. Are you guys just converting back and forth between the list-view and the render-row?
seantempesta: I keep the data outside of the DataSource and on render (after equality check of data) call clonewithdata with the data. Seems most performant and flexible
Anybody using the ExperimentalNavigator already? Think the redux like approach will be a good fit for cljs
@jellea: Do you have an example? I’m not sure I follow you.
thanks
I took a look at ExperimentalNavigator and couldn’t follow the code. I’m hoping to create a cljs react-native router once I am able to wrap my brain around what’s going on.
(defonce data-source (r-native/list-data-source. #js {:rowHasChanged not=}))
(defn list-ui [items]
(let [data-source (.cloneWithRows data-source (clj->js items))]
[list-view {:dataSource data-source}]))
yeah, I’m using reagent now too
And in :render-row you’d just (js->clj) the data back?
okay, so there isn’t a way around converting between clj and js.
lame.
Would be interesting to see if a cljs list using the native scroll view would be faster
yeah, it just seems…wrong
oh yeah, good work btw. I read a bit about your company.
Are you using Posh btw? I feel like I read somewhere that you’re using datascript?
seantempesta: No we made our own reconciler which ties datascript in with datomic more directly. But that gave us perf problems, so we removed all of it and the app which went into review today is completely without datascript.
ah, I see
All because of datascript? Hmm, I wonder if I shouldn’t continue down this road.
yeah, I hear ya.
anyway, thanks for the tips!
It’s an app to help non-profit organizations and schools manage their members (aka kids).
So I figured it’d just send all the data to the app and do local queries to view the data and only send the changes back to the server.
Yeah…I think I need to do some perf testing. I worry what will happen when I try to put 10k entities into the db. Some of the larger orgs I want to serve have that many members.
@jellea: good to know. I’ll look into it.