Skip to content

Conversation

@jhen0409
Copy link
Owner

@jhen0409 jhen0409 commented Oct 22, 2019

Related #151 and #405.

I add the timesJSLoadToRefreshDevTools config option, it will refresh devtools when doing JS reload every N times (-1 for disabled). This can effectively avoid possible memory leaks in devtools. (See Config file in home directory)

This is a compromise for solving the DevTools memory leak issue. Since it affects the use of devtools, it is disabled by default.

@jhen0409 jhen0409 force-pushed the refresh-devtools-on-reload branch from e1c15cc to 592435e Compare October 22, 2019 05:41
@jhen0409 jhen0409 added this to the v0.10.3 milestone Oct 22, 2019
@jhen0409 jhen0409 force-pushed the refresh-devtools-on-reload branch from 10faf33 to 9c76508 Compare October 22, 2019 06:26
@jhen0409 jhen0409 force-pushed the refresh-devtools-on-reload branch from 9c76508 to f8cbc4a Compare October 22, 2019 06:34
@jhen0409 jhen0409 changed the title Add timesJSReloadToRefreshDevTools config option Add timesJSLoadToRefreshDevTools config option Oct 23, 2019
@jhen0409 jhen0409 merged commit ff54262 into master Oct 24, 2019
@jhen0409 jhen0409 deleted the refresh-devtools-on-reload branch October 24, 2019 09:23
jhen0409 added a commit that referenced this pull request Oct 24, 2019
* Add timesJSReloadToRefreshDevTools config option

* Update snapshot

* Fix isDevToolsOpened check

* Add log after refresh devtools

* Update reloadCount order

* Do selectRNDebuggerWorkerContext on devtools-opened

* Update comment of option

* Rename to timesJSLoadToRefreshDevTools

* checkJSLoadCount for delta available

* Update docs/troubleshooting.md
cryptodev523 pushed a commit to cryptodev523/react-native-debugger that referenced this pull request Jan 27, 2022
* Add timesJSReloadToRefreshDevTools config option

* Update snapshot

* Fix isDevToolsOpened check

* Add log after refresh devtools

* Update reloadCount order

* Do selectRNDebuggerWorkerContext on devtools-opened

* Update comment of option

* Rename to timesJSLoadToRefreshDevTools

* checkJSLoadCount for delta available

* Update docs/troubleshooting.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants