elastic / search-ui

Search UI. Libraries for the fast development of modern, engaging search experiences.
https://docs.elastic.co/search-ui
Apache License 2.0
1.92k stars 368 forks source link

ErrorBoundary View Customization Not Working #990

Closed OnerInce closed 1 year ago

OnerInce commented 1 year ago

Describe the bug

ErrorBoundary View Customization Not Working. As described in the docs, error attribute should be used as an custom error message IF an error occurred. However, whenever error attribute is set, error message is shown regardless whether there is an error

Tryting to provide a custom view using

<ErrorBoundary view={ErrorView}>

yields the same result as well.

To Reproduce

Use ErrorBoundary component with the error attribute.

<ErrorBoundary error='custom-error-message'> ...... </ErrorBoundary>

Expected behavior Having a custom error message IF an error happens.

botelastic[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.