React Native: Support reload-and-profile be an important feature
bvaughn opened this issue · 1 comments
bvaughn commented
React DevTools v4 adds a new reload and profile feature to measure perf for application "mount" (although it required a bit of hacking). I don't feel knowledgeable enough about React Native to tackle it, so my current plan is to just not support this feature for RN.
If we did decide to support it,I think we would need to solve the following:
- A reload hook on the backend that worked for all bundle types (not just DEV).
- Some assurance that the backend will be injected/initialized before the first mount/commit (or a mechanism to delay the first commit, like we do in the browser).
- Some way for third party code to request a production+profiling build (similar to how DOM does it).
- A sync storage mechanism (or some other way for DevTools could leave a flag for itself so it knows to begin profiling immediately after reload+connection).
bvaughn commented
This repository is being merged into the main React repo (github.com/facebook/react). As part of this, I am moving all issues to that repository as well and closing them here.
This issue has been relocated to:
facebook/react#16471