react-native
react-native copied to clipboard
App freezes after refreshing the Chrome debugger while using hot reload on Android
steps to reproduce:
android avdand start the emulator (I'm using API 23)- start the app in the emulator and
react-native start - enable both hot reloading and chrome debugger
- use the app
- I'm logging my redux actions at the moment so the debugger fills up quickly
- refresh chrome to clean up the console
- without hot reload the app asks me if I want to reload the js (thanks)
- emulator freezes until it shows the 'app not responding' dialog.
$ react-native -v
react-native-cli: 0.2.0
react-native: 0.24.1
Ubuntu 15.10
To be able to refresh chrome without hangups:
- get error with 'pause on caught exceptions' enabled
- disable the option and press play in Chrome, chrome will lose its debugger session
- refresh
- reload js and enable 'pause on caught exceptions' again
Chrome reconnects if I do it this way and no freezing.
I'm having the same issue. Couldn't find a fix so I'm using the adb logcat method to debug my apps.
I can't reproduce and this is old so I'm going to close this issue. Feel free to open a new one if someone can reproduce an error here with current RN.
Chrome has this nice button to clear the logs and even better, react-native now clears the log on each reload. So it's stale indeed.