Allow prop for custom error component #110
onlinewithryan
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hey @onlinewithryan
I've been thinking about error handling for the UI update I'm planning (#41), displaying non-fatal errors without destroying the UI, and how to recover from them. I don't think just hiding the error would be helpful since the UI would be replaced by this component anyway. Maybe a function to reset the state if it's possible to recover? Can you elaborate on the issues you are having? Anyway, I don't like adding props without first thinking about them to avoid an a-prop-calypse. :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was planning on opening a pull request for this feature but opening an issue to save everyone some time.
I want to add a prop to allow the caller to provide a react component to render (or not render) errors.
For example:
Today we can get the most recent error through
this.props.callback
but it does not allow us to render custom error handling without unrendering the web player, which will prevent any retries and any other updates from flowing down.Beta Was this translation helpful? Give feedback.
All reactions