Skip to content

Webview reload / context reset hook #45

Description

@breautek

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions