-
Notifications
You must be signed in to change notification settings - Fork 24.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
59b96fe
commit 2ccc8fb
Showing
7 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters