@shopify/shopify-app-remix
Version:
Shopify Remix - to simplify the building of Shopify Apps with Remix
13 lines (10 loc) • 378 B
JavaScript
import { jsx } from 'react/jsx-runtime';
function errorBoundary(error) {
if (error.constructor.name === 'ErrorResponse' ||
error.constructor.name === 'ErrorResponseImpl') {
return (jsx("div", { dangerouslySetInnerHTML: { __html: error.data || 'Handling response' } }));
}
throw error;
}
export { errorBoundary };
//# sourceMappingURL=error.mjs.map