This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-17
Channels
- # aleph (3)
- # bangalore-clj (2)
- # beginners (76)
- # boot (37)
- # braid-chat (7)
- # business (1)
- # clara (1)
- # cljsrn (45)
- # clojure (36)
- # clojure-android (1)
- # clojure-austin (2)
- # clojure-dusseldorf (4)
- # clojure-spec (2)
- # clojure-uk (2)
- # clojurebridge-ams (4)
- # clojurescript (79)
- # clr (1)
- # community-development (5)
- # core-async (1)
- # cursive (4)
- # data-science (1)
- # funcool (3)
- # hoplon (3)
- # om (107)
- # om-next (6)
- # other-lisps (1)
- # overtone (1)
- # planck (2)
- # reagent (24)
- # rum (1)
- # specter (7)
- # yada (46)
I'll be jumping in this weekend but curious if anyone has suggestions for what to look at or if I should avoid tvOS with cljs all together for whatever reasons
@surreal.analysis try (def emoji (r/adapt-react-class (.-default Emoji)))
I do not know why this works, but maybe it has something to do with export default Emoji;
in react-native-emoji?
Woo! Thanks so much @drapanjanas, that solved the issue
im trying to get up and running with fighweel and re-natal, getting java.lang.NoClassDefFoundError: com/google/common/base/Predicate
anyone else had the same problem?
seems to indicate i don't have guava on the classpath
@danielstockton What did you do to create the project / run the application?
re-natal init project -i om-next
In the root of the project, can you run:
lein deps
and see if that fixes your issue? If it still doesn’t, can you run lein deps :tree
and paste the output here?lein deps gives me a 'Problem opening jar ... google-closure-library ... ' error
Can you paste the full error?
sure, 2 seconds
added it to the gist
maybe i should try clearing my .m2 directory and running it again
Yeah, that’d be a solid start
I’d also check and see if /home/daniel/.m2/repository/org/clojure/google-closure-library/0.0-20160609-f42b4a24/google-closure-library-0.0-20160609-f42b4a24.jar
exists and what it’s permissions are
deleting .m2 worked, managed to start figwheel
thanks for getting me there
should the app reload if i make changes to the src files? or is there another trick to that?
nvm, i see it works if i change core.cljs, i was changing state.cljs which has defonce
any blog posts anywhere that have tips on making the state reloadable?
@danielstockton When you’re making changes to the state, are there ways in the app to already make that change?
For example, let’s say your state is:
{:name “Daniel”}
Do you have a :set-name
event?just starting out from the basic template, my app doesn't have anything yet
Got it. So you want to modify db.cljs
then see that reflected in your app?
its called state.cljs, maybe thats an om-next thing
Oh, right. I’m much more familiar with re-frame than om
FWIW, in re-frame there’s an “initialize-db” event
it does defonce app-state
and defonce reconciler
, i guess i need to have a way to redefine those
You could always get rid of the once
But that will mess with future hot reloading
i think the defonce is a good idea, actually im wondering why im worrying about this now (https://anmonteiro.com/2016/01/writing-om-next-reloadable-code-a-checklist/)
i should just set up my initial state and create methods that change it at runtime
Yes, you definitely want defonce long term, but if you want to make some state, a quick fix is to delete the once
, save, add the once back, and save
@vikeri thank you for your clojutre talk. described exactly the pains that I’m having with re-natal
Hey guys, I’m having the same problems as @surreal.analysis but with the Navigator.NavigationBar component.
(def ReactNative (js/require "react-native"))
(def navigator (r/adapt-react-class (.-Navigator ReactNative)))
(def navbar (r/adapt-react-class (.-Navigator.NavigationBar ReactNative)))
(defn app-root []
[navigator {:initial-route routes
:render-scene #(r/as-element (scene %))
:navigation-bar [navbar {:route-mapper (my-route-mapper)}]}])