Skip to content

Commit 3f69a4a

Browse files
authored
Merge branch 'main' into pr/general-headers-util
2 parents f40e9b0 + be29d40 commit 3f69a4a

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

app/components/progress-bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { useNavigation } from 'react-router'
21
import { useEffect, useRef, useState } from 'react'
2+
import { useNavigation } from 'react-router'
33
import { useSpinDelay } from 'spin-delay'
44
import { cn } from '#app/utils/misc.tsx'
55
import { Icon } from './ui/icon.tsx'

app/root.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { wrapUseRoutesV7 } from '@sentry/react'
21
import { useRef } from 'react'
32
import {
43
data,
@@ -266,7 +265,7 @@ function AppWithProviders() {
266265
)
267266
}
268267

269-
export default wrapUseRoutesV7(AppWithProviders)
268+
export default AppWithProviders
270269

271270
function UserDropdown() {
272271
const user = useUser()

app/utils/client-hints.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
subscribeToSchemeChange,
99
} from '@epic-web/client-hints/color-scheme'
1010
import { clientHint as timeZoneHint } from '@epic-web/client-hints/time-zone'
11-
import { useRevalidator } from 'react-router'
1211
import * as React from 'react'
12+
import { useRevalidator } from 'react-router'
1313
import { useOptionalRequestInfo, useRequestInfo } from './request-info.ts'
1414

1515
const hintsUtils = getHintUtils({

app/utils/misc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { useFormAction, useNavigation } from 'react-router'
21
import { clsx, type ClassValue } from 'clsx'
32
import { useEffect, useMemo, useRef, useState } from 'react'
3+
import { useFormAction, useNavigation } from 'react-router'
44
import { useSpinDelay } from 'spin-delay'
55
import { extendTailwindMerge } from 'tailwind-merge'
66
import { extendedTheme } from './extended-theme.ts'

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ export default [
88
files: ['**/tests/**/*.ts'],
99
rules: { 'react-hooks/rules-of-hooks': 'off' },
1010
},
11+
{
12+
ignores: ['.react-router/*'],
13+
},
1114
]

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"sideEffects": false,
55
"license": "MIT",
66
"epic-stack": {
7-
"head": "2f5cf2c06d850be92fdb7359a6e3777722d47e89",
8-
"date": "2025-01-16T00:33:59Z"
7+
"head": "2a97bdc26c8c1bf9bba8085216b0381d12ea7d01",
8+
"date": "2025-01-16T21:35:50Z"
99
},
1010
"author": "Kent C. Dodds <[email protected]> (https://kentcdodds.com/)",
1111
"type": "module",

react-router.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ import { type Config } from '@react-router/dev/config'
22
export default {
33
// Defaults to true. Set to false to enable SPA for all routes.
44
ssr: true,
5+
6+
future: {
7+
unstable_optimizeDeps: true,
8+
},
59
} satisfies Config

0 commit comments

Comments
 (0)