You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several issues with the default behavior of errorMessage:
The component offers the actionFn and detailsFn props that, when provided, will render styled Retry and Details buttons. It would be an improvement if you could set a prop to true that would not only get you the styled button but also a default function for the button's onClick. Right now you have to write the following boilerplate to get commonly used functions.
The most obvious binding choice -- errorMessage({error: model.lastLoadException}) often doesn't look good:
e.g. Model throws in doLoadAsync() with e.g. HTTP500, resulting error comes back from fetchService with empty string message, mildly-useful name. Our errorMessage component displays small empty red box - looks silly.
Should be able to better source meaningful content from exception + fallback to generic error message string if none found.
The text was updated successfully, but these errors were encountered:
Several issues with the default behavior of errorMessage:
errorMessage({error: model.lastLoadException})
often doesn't look good:e.g. Model throws in doLoadAsync() with e.g. HTTP500, resulting error comes back from fetchService with empty string message, mildly-useful name. Our errorMessage component displays small empty red box - looks silly.
Should be able to better source meaningful content from exception + fallback to generic error message string if none found.
The text was updated successfully, but these errors were encountered: