Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webview reload / context reset hook #45

Open
breautek opened this issue Apr 19, 2024 · 0 comments
Open

Webview reload / context reset hook #45

breautek opened this issue Apr 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@breautek
Copy link
Contributor

A hook / observable event for when the webview / JS state is reloaded can be important for plugins that manages native assets.

A reloaded webview may lose handles responsible for managing native resources. E.g. a native view, whose view will remain in view until it is cleaned up. Reloading the webview however causes the handle to be lost.

A hook would allow plugins to cleanup these resources for when something reloads the webview either via:

  • window.location.href
  • window.location.reload
  • Triggering a refresh via ctrl/cmd + r through the web inspector.
@breautek breautek added the enhancement New feature or request label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Status: No status
Development

No branches or pull requests

1 participant