Fork me on GitHub
#cljsrn
<
2016-10-02
>
danielstockton13:10:17

I can't get any success with re-natal and figwheel, I managed to build the app but none of my changes are updated automatically

danielstockton13:10:47

The other day when I tried, it seemed to work, but I don't seem to be able to resume where I left off

pesterhazy18:10:29

reloading can be a tricky art sometimes

pesterhazy18:10:48

you may have more luck with boot react native

pesterhazy18:10:18

even so you can run into situations where something doesn't reload

pesterhazy18:10:45

in these cases you need to try to narrow it down

pesterhazy18:10:53

is the on-js-reload fn called?

pesterhazy18:10:05

is it a react problem, i.e. the view isn't re-rendered?

pesterhazy18:10:33

sometimes it's a javascript problem: you store the reference to a cljs fn in, say, a map and refer to that

pesterhazy18:10:54

then (as with clj) a solution is to use #'my-fn instead of my-fn

danielstockton18:10:22

Forgot about that hook, I'll play around with it, thanks.

danielstockton18:10:04

jsload-callback I think you meant?

danielstockton18:10:52

What's a good way to test if something is running? Usually I'd add a console.log or something.

danielstockton19:10:12

Aha! Found the problem by comparing the app skeleton again, I'd replaced the defonce on RootNode and app-root with def

pesterhazy19:10:53

Ah yes, that's another gotcha

pesterhazy19:10:58

Somebody should cljs reloading first aid guide!

danielstockton19:10:34

I wanted to replace the defonce on my app state so i could make changes to that and got carried away