cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
benny 2020-07-02T21:21:56.436700Z

shadow is proving to be challenging with inconsistent dependency availability, any recommendations of one over the other with shadow, figwheel or main?

benny 2020-07-02T21:49:34.437100Z

maybe my real issue is cljs-ajax and cljs-http don’t support cljrn?

raspasov 2020-07-02T22:02:27.438300Z

cljs-ajax was problematic for me; there was a solution of sorts somewhere but I preferred to go barebones and just use the React Native’s fetch API directly, that worked well enough for my use-case

👍 1
benny 2020-07-02T22:03:59.439Z

seems like cljs-http supports cljsrn 😕 https://github.com/r0man/cljs-http/issues/122

benny 2020-07-02T22:04:12.439600Z

at least for him

benny 2020-07-02T22:04:15.439800Z

😆

raspasov 2020-07-02T22:05:36.440900Z

As far as I remember cljs-http was fine; but I haven’t tried using it recently

benny 2020-07-02T22:06:16.441200Z

i keep running into this with both libraries: https://clojurians.slack.com/archives/C6N245JGG/p1593717903181600

benny 2020-07-02T22:06:32.441600Z

i’m suspicious of shadow so i’m switching to lein

raspasov 2020-07-02T22:07:01.442200Z

I have no idea about shadow, perhaps ask in #shadow-cljs

benny 2020-07-02T22:08:00.443Z

that’s where that message was from, but they’re not sure over there either 😞

raspasov 2020-07-02T22:08:23.443400Z

ah… I’d suggest just trying fetch api directly

raspasov 2020-07-02T22:08:36.443900Z

If you don’t need advanced features, it will be more than good enough

raspasov 2020-07-02T22:09:29.444Z

raspasov 2020-07-02T22:11:14.444900Z

I use this so I can auto-magically convert JS promises to core.async https://github.com/jamesmacaulay/cljs-promises has been working without issues for many years now

joshmiller 2020-07-02T22:58:59.446Z

@benny cljs-http does work on RN (I’ve used it with both re-natal and Krell, but not shadow)

joshmiller 2020-07-02T22:59:33.446300Z

I think cljs-ajax does not

benny 2020-07-02T23:00:14.446800Z

my main issue right now is the reference error above

benny 2020-07-02T23:01:07.448Z

I suspect it could be shadow causing the issue but haven't worked in figwheel or krell for cljs