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
It would seem more straightforward to instead inject the error messages directly into the details element when the 500 error is being constructed. This could be done done with streams or more simply it could be done just by reading the body of the 500 error response and injecting it straight away.
The text was updated successfully, but these errors were encountered:
A
500.php
template currently needs to include the following to display any 500 error that was returned from the server:However, this currently depends on
BroadcastChannel
to send the message from the service worker to the client after the page has loaded:https://github.com/xwp/pwa-wp/blob/57b295c646bfae63f78c3d735fbc37762709fca0/wp-includes/js/service-worker-error-response-handling.js#L11-L31
It would seem more straightforward to instead inject the error messages directly into the
details
element when the 500 error is being constructed. This could be done done with streams or more simply it could be done just by reading the body of the 500 error response and injecting it straight away.The text was updated successfully, but these errors were encountered: