This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-20
Channels
- # aws (1)
- # beginners (14)
- # boot (30)
- # cider (6)
- # clara (9)
- # cljsjs (3)
- # cljsrn (22)
- # clojure (247)
- # clojure-dusseldorf (75)
- # clojure-france (38)
- # clojure-italy (6)
- # clojure-japan (8)
- # clojure-nl (3)
- # clojure-russia (16)
- # clojure-serbia (4)
- # clojure-spec (1)
- # clojure-uk (53)
- # clojurescript (168)
- # consulting (3)
- # copenhagen-clojurians (1)
- # core-async (7)
- # css (1)
- # datascript (3)
- # datomic (8)
- # dirac (22)
- # events (1)
- # hoplon (2)
- # jobs (1)
- # jobs-discuss (2)
- # leiningen (4)
- # lumo (138)
- # mount (13)
- # nyc (1)
- # off-topic (24)
- # om (34)
- # onyx (15)
- # pedestal (30)
- # re-frame (9)
- # reagent (23)
- # ring (1)
- # ring-swagger (24)
- # rum (6)
- # spacemacs (6)
- # specter (51)
- # uncomplicate (14)
- # unrepl (1)
- # untangled (17)
- # yada (12)
Realm is synchronous (weirdly enough for js land) and it’s also super fast so I recommend it for storage. But in @benny’s case I’d just keep the token in memory
Hi guys, I am trying to make a simple app using exponent and re-natal. I am having trouble using firebase. The moment I add [cljsjs.firebase :as cfb] in my 'require' dependency, I get the error "Can't find varaible: self". I have added [cljsjs/firebase "3.5.3-1"] to my 'project.clj'. Please let me know if I am doing something wrong (still new to clojure.)
@openaki I generally use npm dependencies in package.json and then use (js/require "module")
in my cljs code. The RN packager does a lot of “magic” and this seemed to work best for me.
@benny Yeah Realm might totally be an overkill if you don’t need to store other stuff like part of the re-frame atom. I would still keep the refresh token in memory by loading it from storage the first thing I do when I start the app.
Agreed but that's ultimately what I'm trying to solve is storing for subsequent launches
https://github.com/Day8/re-frame/blob/506538e91ecc2620e65ee66b36f914e2ff8e2464/docs/Effects.md
I don’t know what kind of token you’re talking about, I presume to authenticate to some kind of API?
Access token is short lived. I planned on assuming it would be expired upon launch so I was going to grab a new access token using a previously stored refresh token
@benny Ok, I would just get the refresh token from the storage directly and then in the callback from the storage get do a fetch to get an access token. Nothing fancy
https://github.com/frankiesardo/lumo-vr
Run a ReactVR application with ClojureScript