Skip to content

Expose onScriptRequestStarted and onScriptError callbacks via props #87

Description

@AlexisGlez

Description

It would be cool and really helpful if the Bling component can receive the props onScriptRequestStarted and onScriptError so the users can get these callbacks in their application.

Use Case Example

If we wrap this component with another one to display a progress bar while the ad is being requested, we can simplify the logic in our application to replace the progress bar with another thing if an error occurred.

Implementation Suggestion

The implementation for this would be really simple, in the Bling's componentDidMount we would call this.props.onScriptRequestStarted() method and in the function onScriptError we would call this.props.onScriptError()

Note: Maybe the callbacks can have a different name 😄

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions