Skip to content

showReportDialog failure API #24765

Description

@SimonSchick

Problem Statement

When running ad blockers or other network disruptions occur showReportDialog will silently fail, there is no api provided for catching this case and asking the user to potentially turn their adblocker (or similar off).

Solution Brainstorm

  1. Make showReportDialog return a Promise that resolves when the dialog opens, rejects with error when it fails. (Bonus if you make showReportDialog resolve an object that lets you close the dialog or similar.
  2. Add onError callback showReportDialog({ onError: (error: Error) => { ... } }}

Additional Context

No response

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

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

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions