Commit 1e0c1f8
Add reporter hook to
Summary:
Pull Request resolved: #56155
Add a `global.__BUNDLE_LOADER_REPORTER__` optional hook to `loadBundleFromServer.js`, following the same pattern as `global.__NETWORK_REPORTER__` in `RCTNetworking`. This provides an OSS-safe abstraction for reporting dev-mode bundle load timing and failure events.
The OSS side calls `onStart`/`onSuccess`/`onError` through optional chaining, making it a complete no-op when no reporter is installed.
Changelog:
[General][Added] Call methods on `global.__BUNDLE_LOADER_REPORTER__`, if given, during dev-mode bundler loads from Metro
Reviewed By: huntie
Differential Revision: D97115145
fbshipit-source-id: bba55aaddf20c7aa774699b0cddf9e6cc0a34366loadBundleFromServer (#56155)1 parent d21ffc9 commit 1e0c1f8
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
| 161 | + | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
| |||
183 | 189 | | |
184 | 190 | | |
185 | 191 | | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| 196 | + | |
189 | 197 | | |
190 | 198 | | |
191 | 199 | | |
| |||
0 commit comments