Closed
Description
In my experience, when using prerender: true
, if something breaks the server side rendering, the error messages are less than helpful.. My workflow has become anytime that happens to stop prerendering and use browser tools to diagnose where the issue is. The stack trace provided by the gem is no where near the help that comes from browser tools.
Have we thought of the idea of in the case of a prerender error to not throw an error, but instead disengage the prerendering. Maybe wrap the code that caused the server error in a debugger;
call to help users know something is wrong?
maybe even include an alert message. So something like this is what I have in mind:
prerender catches error
- find error location
- Inject the following above the error
alert('ReactRails encountered an error server side rendering, please inspect your issue with your browser dev tools');
debugger;
// error code is here.
thoughts?
Metadata
Metadata
Assignees
Labels
No labels