react-native-threads icon indicating copy to clipboard operation
react-native-threads copied to clipboard

Live reloading (re-bundling of both app and worker bundles) not working

Open jliebrand opened this issue 8 years ago • 3 comments

First of all, thanks for reviving this, as indeed the other two modules do not seem to be maintained anymore!

But I've just tried to use this (on mac and ios), but haven't yet got it working. More annoying, there seems to be something stopping the packager from seeing updates I make.

Have you had any issues with the underlying watchman not picking edits?

jliebrand avatar Sep 26 '17 14:09 jliebrand

Correction; it seems it does spot when I make a change, because if I use the simulator I can see it reloading on edit once I enable live reload. So that part seems to be ok

However, it reloads the old bundle. So I'm assuming the bundles aren't updated. Does this mean I have to manually rebundle both the app and the worker?

jliebrand avatar Sep 26 '17 15:09 jliebrand

Hi @jliebrand, thanks for checking out react-native-threads!

Unfortunately the worker thread bundle reloading doesn't work very well for me either, my personal workflow has been to restart my app in order to pick up changes.

It's definitely not ideal, I'm hoping to be able to find a way to make the development experience better. Ideally I'd like to be able to reload worker bundles and launch remote debuggers for worker threads, but I'm not quite sure right now what kind of work that would entail.

Traviskn avatar Sep 27 '17 01:09 Traviskn

Thanks for the confirmation. For me, even restarting the app didn't work... but I just restarted everything (xcode, packager, simulator), and now it works as you describe.

I'll update the title of this bug, and leave it open in case you do work out how to get live reloading working

jliebrand avatar Sep 27 '17 08:09 jliebrand