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
In order easily style the top level component error handler back stop it should have a class (like ''hyperstack-top-level-error-boundry' that you can set the CSS for.
I.e. make the text smaller, and give it a white background, etc.
Here is a patch:
moduleHyperstackclassHotloadermoduleAddErrorBoundry# don't attempt the alias unless the method is defined.# for example if HotLoader is not included in the stackaliasoriginal_display_errordisplay_errorifmethod_defined?:display_errordefdisplay_error(*args)DIV(class: 'hyperstack-top-level-error-boundry'){original_display_error(*args)}endendendend
Be sure to have the method_defined? guard defined, otherwise you may discover in test or worse in production things won't boot