()
| 13 | }; |
| 14 | |
| 15 | export default function App() { |
| 16 | const { apiKey } = useLoaderData<typeof loader>(); |
| 17 | |
| 18 | return ( |
| 19 | <AppProvider embedded apiKey={apiKey}> |
| 20 | <s-app-nav> |
| 21 | <s-link href="/app" rel="home">Home</s-link> |
| 22 | <s-link href="/app/additional">Additional page</s-link> |
| 23 | </s-app-nav> |
| 24 | <Outlet /> |
| 25 | </AppProvider> |
| 26 | ); |
| 27 | } |
| 28 | |
| 29 | // Shopify needs React Router to catch some thrown responses, so that their headers are included in the response. |
| 30 | export function ErrorBoundary() { |
nothing calls this directly
no outgoing calls
no test coverage detected