Skip to content

Commit 283611a

Browse files
committed
Clean up
1 parent 2ab326b commit 283611a

File tree

3 files changed

+2
-33
lines changed

3 files changed

+2
-33
lines changed

dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.client.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Sentry.init({
77
environment: 'qa', // dynamic sampling bias to keep transactions
88
// Could not find a working way to set the DSN in the browser side from the environment variables
99
dsn: 'https://[email protected]/1337',
10-
debug: true,
1110
integrations: [Sentry.reactRouterTracingIntegration()],
1211
tracesSampleRate: 1.0,
1312
tunnel: 'http://localhost:3031/', // proxy server

dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/root.tsx

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,16 @@ import * as Sentry from '@sentry/react-router/cloudflare';
22
import {type LoaderFunctionArgs} from '@shopify/remix-oxygen';
33
import {
44
Outlet,
5-
useRouteError,
65
isRouteErrorResponse,
76
type ShouldRevalidateFunction,
87
Links,
98
Meta,
109
Scripts,
1110
ScrollRestoration,
12-
useLocation,
13-
useMatches,
14-
useRouteLoaderData,
1511
} from 'react-router';
1612
import {FOOTER_QUERY, HEADER_QUERY} from '~/lib/fragments';
17-
import {useEffect} from 'react';
18-
import {useNonce} from '@shopify/hydrogen';
1913

20-
// export const meta = ({
21-
// data,
22-
// }: {
23-
// data: {
24-
// ENV: {SENTRY_DSN: string};
25-
// sentryTrace: string;
26-
// sentryBaggage: string;
27-
// };
28-
// }) => {
29-
// return [
30-
// {
31-
// env: data.ENV,
32-
// },
33-
// {
34-
// name: 'sentry-trace',
35-
// content: data.sentryTrace,
36-
// },
37-
// {
38-
// name: 'baggage',
39-
// content: data.sentryBaggage,
40-
// },
41-
// ];
42-
// };
14+
import {useNonce} from '@shopify/hydrogen';
4315

4416
export type RootLoader = typeof loader;
4517

@@ -95,7 +67,7 @@ export async function loader(args: LoaderFunctionArgs) {
9567
// Await the critical data required to render initial state of the page
9668
const criticalData = await loadCriticalData(args);
9769

98-
const {storefront, env} = args.context;
70+
const {env} = args.context;
9971

10072
return {
10173
...deferredData,
@@ -166,7 +138,6 @@ function loadDeferredData({context}: LoaderFunctionArgs) {
166138

167139
export function Layout({children}: {children?: React.ReactNode}) {
168140
const nonce = useNonce();
169-
const data = useRouteLoaderData<RootLoader>('root');
170141

171142
return (
172143
<html lang="en">

dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ Sentry.init({
55
// https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/options/#sendDefaultPii
66
sendDefaultPii: true,
77
tracesSampleRate: 1.0,
8-
debug: true,
98
tunnel: `http://localhost:3031/`, // proxy server
109
});

0 commit comments

Comments
 (0)