Skip to content

Allow for graceful handling of render-time errors #690

@tmarmer

Description

@tmarmer

Is your feature request related to a problem? Please describe.

When rendered assets throw an error, it is difficult to catch errors and either handle the errors gracefully or gather data based on the specific asset that failed. With streaming player, these types of errors could come up if the dynamic content isn't perfectly aligned with the expected props of the assets, and introducing validations at transform time or within the async node handler adds a lot of extra work on the integration layer.

Describe the solution you'd like

Access to a hook to catch asset render errors, with access to the error, which asset triggered that error and ideally the AST node that resolved into that asset. If the AST node or the hook has some way to know if this was generated by an async node, it would be nice to have this trigger the onAsyncNodeError introduced for handling errors related to async nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions