| 03d43e7d | 28-Mar-2023 |
Cedric van Putten <[email protected]> |
feature(cli): add basic `Page.reload` support to reload the app from inspector (#21827)
# Why
This implements the `Page.reload` CDP event, to reload the app itself.
> Would be nice if there is
feature(cli): add basic `Page.reload` support to reload the app from inspector (#21827)
# Why
This implements the `Page.reload` CDP event, to reload the app itself.
> Would be nice if there is a way to send this to _JUST_ the device you
are inspecting. But not sure what socket connection that would be, don't
think it's the actual device socket in the inspector (that's inspector
messages only).
# How
- Provided the reference of `MetroBundlerDevServer` to the inspector
- Called `MetroBundlerDevServer.broadcastMessage('reload')`
# Test Plan
- Open chrome inspector (`j`)
- Anywhere in the inspector, press `cmd+r`
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `expo prebuild` & EAS Build (eg:
updated a module plugin).
---------
Co-authored-by: Expo Bot <[email protected]>
show more ...
|