Fork me on GitHub
#cljsrn
<
2018-06-15
>
alvina01:06:06

i saw some one post a example a month ago

jeaye01:06:01

Why not use lein?

dehli01:06:36

Ya, I'll just stick with lein for now. And mostly b/c my non react-native projects don't use lein

jeaye01:06:31

Lein has always felt like the most reliable choice for all of my CLJ, CLJS, and CLJSRN apps.

jeaye01:06:01

Except for that one time I tried boot...

😂 1
dehli01:06:25

Have you happened to ever get an xmlhttprequest error when building your clj rn apps?

dehli01:06:24

I'm guessing it's a library I'm using

dehli02:06:53

So no optimizations runs fine during development, simple hangs (this is when I'm doing exp publish), and advanced throws an error (also for exp publish).

Oliver George02:06:56

@dehli I gave up trying to get cljs-ajax working.

dehli02:06:26

Ya, it's really weird that it works in development though. I would assume it would be all or nothing

Oliver George02:06:49

But it didn't work for me.

Oliver George02:06:17

As soon as I can I'm taking that dep out of my life. It feels like every release breaks things.

dehli02:06:55

Ya. I'm not using it directly but it's used in https://github.com/Day8/re-frame-http-fx

Oliver George02:06:55

That lib is all of 50 lines of code in one file. Perhaps consider copy/paste and replace the cljs-ajax stuff with js/Fetch

dehli02:06:20

Ya, I'll probably do that 🙂 or maybe submit a PR

Oliver George02:06:26

Here's mike fikes effort to make a little lib which seems likely to be sufficient: https://github.com/cljsrn/side-fx/blob/master/src/side_fx/fetch.cljs

Oliver George02:06:17

@pesterhazy pointed out that js/fetch should provide good coverage in the browser space too. IE is an exception. (I'm not sure what a good way to provide the necessary polyfill is to get full coverage.)

dehli02:06:02

Ya, that's true.

dehli02:06:08

Also looks like the false thing is working for me. Thanks for pointing it out!

👍 1
manu10:06:21

Hi! I'm trying to update re-natal to the last version 0.9.0 (I'm at 0.5.0). I typed npm upgrade -g re-natal and after re-natal upgrade. I had

upgraded .re-natal
upgraded files in env/dev and env/prod 
upgraded figwheel-bridge.js
To upgrade React Native version please follow the official guide in ..
but really nothing happened. If I type re-natal --version it is still 0.5.0

manu10:06:52

what I'm missing?

pesterhazy18:06:18

what I'd try: - type -a re-natal - any dupes? - check where npm installs its binaries - did you use yarn before? - try wiping the entire npm global directory and start from scratch

manu16:06:43

yeah! I don't know why re-natal binary was pointing at an old project..