Fork me on GitHub
#cljsrn
<
2016-11-28
>
elsehow02:11:37

i’m just starting out with react-native + reframe

elsehow02:11:48

does anyone have tips for integrating with local device storage?

elsehow02:11:20

i found this core async storage wrapper, but was wondering if there are any examples of using it with re-frame: https://github.com/glittershark/core-async-storage

nikki04:11:11

@tiensonqin hey btw i remember you said you had sourcemaps working in react-native + clojurescript on exponent right? @elsehow was interested in getting it working

elsehow04:11:32

yes that would be sweet

nikki06:11:14

O btw @elsehow how r u doing on re-frame <-> core-async-storage?

elsehow06:11:58

nikki core-async-storage did the job i needed doing. seems like the lib you’d want for interacting with that API in cljs.

elsehow06:11:28

it could use a PR expanding some of those API calls

elsehow06:11:18

could be cool with datascript down the line as well

nikki07:11:56

@elsehow: cool will check it out

artemyarulin12:11:10

looks like you *really* like Clojure 🙂

kurt-yagram12:11:32

... and I'm trying to find people who do so as well, and who like to help shape the future of health care. > The future cannot be predicted, but futures can be invented. (Dennis Gabor, not Alan Kay 🙂 )

artemyarulin12:11:22

cljs,RN,remote work,startup - what could be better, I need to think about 🙂

kurt-yagram12:11:41

nice... don't hesitate to contact me whenever you feel like it.

artemyarulin12:11:45

I guess you wouldn’t mind if I share your job ad with couple of my friends

kurt-yagram12:11:21

I don't mind at all... we actually may need more people - all depends on the profiles.

vikeri12:11:53

@jorda0mega It is unfortunately: https://github.com/mjmeintjes/boot-react-native/issues/25 I still get the name of the function that is throwing the error straight from the js so I do it that way...

vikeri12:11:31

@kurt-yagram We’re also an mHealth startup that is all in on cljs+rn and clojure on the backend. Great stuff!

tiensonqin13:11:07

@nikki @elsehow Sorry for the late response, I'm following re-natal's way to enable sourcemaps on exponent-cljs-template, related code here: https://github.com/tiensonqin/exponent-cljs-template/blob/master/resources/leiningen/new/exponent/env/dev/user.clj#L21-L26

pesterhazy16:11:30

@jorda0mega yeah it's broken currently, what are you having trouble debugging?

elsehow16:11:06

tiensonqin awesome, thank you!!

jorda0mega17:11:23

one of my functions is returning an invalid component so it would be nice to step through each iteration to see where it fails

jorda0mega17:11:18

it's supposed to return a list of objects but i just get the exception object is not of type ISeq

pesterhazy18:11:12

debugging rendering functions is always a bit messy

pesterhazy18:11:59

one (not very satisfying) strategy is to comment out components one by one

pesterhazy18:11:19

in hard case that always works for me

pesterhazy18:11:53

otherwise, the fact that you see an Object might be an indication that it's to do with javascript interop

pesterhazy18:11:49

I've been working with BRN for almost a year and honestly lack of source-maps hasn't been anything I missed

pesterhazy18:11:03

but I do realize it's an important feature, especially when getting started

jorda0mega18:11:24

kk. i'll try commenting out sections and outputting the objects to the chrome console to see what's up. thanks for the quick response