2ccc8fbc28
Summary: This diff adds a new reloading method reloadWithReason that allows callers to provide a reason for why a reload was requested. This reason is useful for understanding why users are reloading, and why Fast Refresh is bailing out to a full reload. I also updated the places we reload with the reasons listed below. **Standard native reasons:** - Redbox - Command - Global hotkey - Profiling controls - Dev menu - reload - Dev menu - reset to default - Dev menu - apply changes **From JavaScript (added in a later diff):** - Fast Refresh - Unrecoverable - Fast Refresh - No root boundary - Fast Refresh - Invalidated boundary - Fast Refresh - Invalidated root boundary **Misc reasons and fallback for when a reason is unavailable:** - Unknown from JS - Uncategorized from JS - Unknown from bridge - Unknown from cxx bridge - Requested from bridge - Custom executor class reset Reviewed By: cpojer Differential Revision: D17499339 fbshipit-source-id: 12a21ffa05708c9b921d93911f190cdffc5c78d5 |
||
---|---|---|
.. | ||
JSCExecutorFactory.h | ||
JSCExecutorFactory.mm | ||
NSDataBigString.h | ||
NSDataBigString.mm | ||
RCTCxxBridge.mm | ||
RCTCxxBridgeDelegate.h | ||
RCTMessageThread.h | ||
RCTMessageThread.mm | ||
RCTObjcExecutor.h | ||
RCTObjcExecutor.mm |