ctrlplusb / react-jobs

Asynchronously resolve data for your components, with support for server side rendering.
MIT License
166 stars 34 forks source link

ErrorComponent does not work on the server side #29

Open cloud-walker opened 7 years ago

cloud-walker commented 7 years ago

On my dummy project I'm trying to render the not found page if an error occurs, and it works on the client side (rendering the LoadingComponent first, as I expect). But Its not resolved from the server side! When instead if I use a catch on the work promise (and handle the NotFound rendering on the Component side) all works like a charm, but I fill like is not the right thing to do, as withJob should be the HoC to handle the promise..

schermata 2017-04-27 alle 10 53 37