This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-22
Channels
- # adventofcode (1)
- # beginners (172)
- # boot (47)
- # cider (7)
- # cljs-dev (30)
- # cljsrn (43)
- # clojure (180)
- # clojure-dusseldorf (1)
- # clojure-greece (1)
- # clojure-italy (3)
- # clojure-russia (41)
- # clojure-spec (67)
- # clojure-uk (101)
- # clojurescript (128)
- # core-async (4)
- # cursive (13)
- # datomic (29)
- # devcards (5)
- # emacs (19)
- # events (1)
- # hoplon (38)
- # lein-figwheel (1)
- # luminus (8)
- # midje (1)
- # off-topic (47)
- # om (10)
- # onyx (23)
- # protorepl (1)
- # re-frame (11)
- # reagent (7)
- # ring (3)
- # ring-swagger (9)
- # rum (6)
- # sql (5)
- # untangled (4)
@raspasov: I updated to 8.2.1. Also re-natal and now I'm getting a "var undefined: self" error. Even after downgrading to 8.2. No idea what's going on. @.@
Was good opportunity for me to play around with boot-react-native at least!
yup, done that. even cleaned project folder. lein clean
even react-native upgrade
@raspasov when I react-native log-ios
it says the error originates from line 19, but doesn’t say what file. However, if I check figwheel-bridge.js
, on line 19 there is var self;
. Though I can’t imagine why it complains about not finding something it’s declaring.
is there any documentation on how to add externs in boot-react-native?
@jorda0mega i think in the example there is a place they set aside for you to put the externs.
here: https://github.com/mjmeintjes/boot-react-native/blob/master/example/resources/externs.js
@levitanong yeah I was wondering about that file but do I just put the name? a path? url?
@jorda0mega you put in stuff like this: https://github.com/mjmeintjes/boot-react-native/blob/master/example/resources/react.native.ext.js
You’re basically declaring the names that should be preserved
ah i see
let me try that. thanks for the help @levitanong
no problem. 🙂 just message me again if you need more direct help, and then we’ll go through the file you want externed.
thank you 🙂
so I’m trying to include firebase through cljsjs-firebase but I have noticed that the output of this module to the build folder only has a minimized .js file. Whereas other modules such as react include both a .cljs and .js file. Does anybody know why this might be?
apparently something to do with version 3.5.3 of cljsjs-firebase. version 3.2.1 seems to work fine
@misha Hi! I read from one of you prior threads, regarding Datascript: >I am doing something similar now as an experiment – maintaining cache of datascript db with a bi-directional subscription to changes. >this way you have data in DS for normalization and super easy server sync, + instant UI updates, because mutations are done to cache, not DS >but I have yet to see how it'll go on a larger scale.
Any updates on that?
how would DS be easy for server sync? Wouldn’t you have to implement custom merge and transform incoming server data to a form that the ds transact!
can use?
@levitanong No idea, but if it can help, this is the context: https://clojurians-log.clojureverse.org/cljsrn/2016-10-25.html
Ah, I remember that. Haha!
@leontalbot, no, have to take care of lots of business logic at the moment, but I'll publish any valuable updates here, when I get back to it.
Thanks for the follow up
@leontalbot what exactly do you expect to hear about that approach? what I can tell right now, is: the only 2 DS features/things I use are: 1) easy sync with datomic, 2) pull (entities into cache hash-map). I don't use any query capabilities, which makes me sad a bit. Basically, all the app code is about updating/reading from cache hashmap, like if you'd keep all the data in an atom.
The discussion started in the exponent slack group, in the clojurescript channel. @tiensonqin simply asked: "Anyone using datascript on React Native?"
I wanted myself to know that, and made some research. I found that people are saying it is not performing well on mobile
then I say your thread and was curious
I will have huge dataset on client in production for offline use, so it was very easy for me to accept "cache" solution, instead of trying to optimize the shit out of queries, etc.
Anything open sourced I could see?