MCPcopy Create free account
hub / github.com/Shopify/function-examples / App

Function App

sample-apps/delivery-customizations/app/routes/app.tsx:15–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13};
14
15export 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.
30export function ErrorBoundary() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected