This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # adventofcode (4)
- # beginners (113)
- # boot (165)
- # cider (192)
- # cljsrn (82)
- # clojure (148)
- # clojure-austin (6)
- # clojure-russia (22)
- # clojure-spec (45)
- # clojure-uk (19)
- # clojurescript (153)
- # core-async (5)
- # cursive (7)
- # datomic (2)
- # defnpodcast (2)
- # emacs (1)
- # hoplon (617)
- # instaparse (10)
- # lein-figwheel (19)
- # luminus (4)
- # off-topic (12)
- # om (3)
- # onyx (36)
- # pedestal (1)
- # protorepl (43)
- # re-frame (8)
- # ring (7)
- # specter (17)
- # testing (2)
- # untangled (117)
- # yada (12)
I think I have gotten RN 0.39 working now in boot-react-native. But please test my PR on your projects: https://github.com/mjmeintjes/boot-react-native/pull/84
@pesterhazy It won’t have to be patched since the
goog.require is replaced by a normal
require that RN will understand. Well ouch, haven’t tested the boot-reload. And when I think of it that will probably not work 😞
Alright, my experience has not been great regarding speed and it crashing if using the REPL, but I agree that it should work. That makes RN 0.39 quite a bit more trickier to get going.
Btw, I traced the 'websocket occupied' error to https://github.com/tomjakubowski/weasel/blob/master/src/clj/weasel/repl/server.clj#L16-L19
@vikeri If I comment these lines, the error will go. But you have to restart the repl.
@vikeri It's still there: weasel git:(master) ✗ lsof -i :9001 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 3727 tienson 172u IPv6 1841189 0t0 TCP debian:9001 (LISTEN) java 3727 tienson 326u IPv6 1840411 0t0 TCP debian:9001->android-e6ef9767e0a3cdfb.lan:46538 (ESTABLISHED) java 3727 tienson 327u IPv6 1848369 0t0 TCP debian:9001->android-e6ef9767e0a3cdfb.lan:46553 (ESTABLISHED)
Also, figwheel support websocket server keep-alive and client reconnect, I think sente does that very well too. Don't see that in boot-reload or boot-cljs-repl.
I'm still dig around figwheel to figure out how it deal with this problem. Right now boot-reload mostly not works for me.
@tiensonqin There is an effort to port figwheel to
boot-reload so maybe that support is coming
Yeah, hope that works. I see the commit mostly related to figwheel client. figwheel doesn't rely on weasel, I think it use it's own websocket server for both reload and repl stuff. So maybe there are more work to make cljs-boot-repl works better.
@pesterhazy Do you have any idea of how we could solve the RN 0.39 issue. I was thinking maybe just adding a
require statement below each
goog.require statement. Aware that I’m in major hack-wild-west-land now 😛
They stopped watching the
node_modules folder (which makes sense, restarting the packager when adding a new package is not too much to ask, sadly it also ruined our little hack) the RN issue is here: https://github.com/facebook/react-native/issues/11301
for pathless requires (not starting with
.), the packager searches only
requiring those still works, but changing them requires a packager restart to update
require(’./hello’): requiring on path,
require(‘hello’): requiring from
If we wan’t to go away from the current solution of flattening everything into a single folder. My PR solves that specific issue.
also realm works really damn good 🙂 https://gist.github.com/dvcrn/e040c0067a7fa8adf44b174de1e837cd
@dvcrn We’re using
re-frame so I’ll just send in a
#(dispatch [:storage/get %]) callback instead. So, I’m sort of using it but under the hood.
@dvcrn Hi, I've also used realm on lymchat, it works pretty well, especially the synchornous api helps! https://github.com/tiensonqin/lymchat/blob/master/src/lymchat/realm.cljs Later I ported lymchat to exponent, then I switch realm to async storage, turns out it works fine, but async do have some troubles, since you don't know exactly when something happens. https://github.com/tiensonqin/lymchat-exp/blob/sdk10/src/lymchat/storage.cljs
I saw the explanation video but still couldn't figure it out 😛 Looks like it's a toolbox of some sorts
@tiensonqin would you recommend look at exponent when I'm currently very happy with the normal re-frame+reagent+re-natal stack?
@dvcrn: exponent is sort of an out of the box set of tools, yup, to make it so you just simply have to write JS (in this case cljs) to make cool phone app things