-
Notifications
You must be signed in to change notification settings - Fork 52
Description
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.