react-server icon indicating copy to clipboard operation
react-server copied to clipboard

How to show error message when handleRoute call fails?

Open lrbridge opened this issue 8 years ago • 0 comments

In the Bike Share example and on the error test page if the ReactServerAgent calls fail then the associated RootElements aren't displayed.

I want to show an error to the user instead of not displaying the section. How would I do that?

(I know I could return a promise instead of calling next(), but I still want to have async calls and have the top of the page rendered before the RootElement when sections, so it seems like returning the promise isn't the right approach)

lrbridge avatar Mar 15 '17 20:03 lrbridge