Skip to content

Commit 7080e29

Browse files
committed
fix: resolve CI lint and type failures
1 parent be913e7 commit 7080e29

4 files changed

Lines changed: 3 additions & 14 deletions

File tree

packages/react-router/tests/redirect.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ describe('redirect', () => {
366366
state: {
367367
__TSR_index: 0,
368368
__TSR_key: redirectResponse.options._fromLocation!.state.__TSR_key,
369-
key: currentRedirect.options._fromLocation!.state.key,
369+
key: redirectResponse.options._fromLocation!.state.key,
370370
},
371371
},
372372
href: '/about',

packages/router-devtools-core/src/BaseTanStackRouterDevtoolsPanel.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { clsx as cx } from 'clsx'
2-
import { invariant } from '@tanstack/router-core'
32
import { interpolatePath, rootRouteId, trimPath } from '@tanstack/router-core'
43
import {
54
For,
@@ -264,16 +263,6 @@ export const BaseTanStackRouterDevtoolsPanel =
264263
const styles = useStyles()
265264
const { className, style, ...otherPanelProps } = panelProps
266265

267-
if (!router) {
268-
if (process.env.NODE_ENV !== 'production') {
269-
throw new Error(
270-
'Invariant failed: No router was found for the TanStack Router Devtools. Please place the devtools in the <RouterProvider> component tree or pass the router instance to the devtools manually.',
271-
)
272-
}
273-
274-
invariant()
275-
}
276-
277266
// useStore(router.stores.__store)
278267

279268
const [currentTab, setCurrentTab] = useLocalStorage<

packages/start-client-core/src/client-rpc/serverFnFetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import {
22
createRawStreamDeserializePlugin,
33
encode,
4+
invariant,
45
isNotFound,
56
parseRedirect,
67
} from '@tanstack/router-core'
78
import { fromCrossJSON, toJSONAsync } from 'seroval'
8-
import { invariant } from '@tanstack/router-core'
99
import { getDefaultSerovalPlugins } from '../getDefaultSerovalPlugins'
1010
import {
1111
TSS_CONTENT_TYPE_FRAMED,

packages/start-server-core/src/server-functions-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
22
createRawStreamRPCPlugin,
3+
invariant,
34
isNotFound,
45
isRedirect,
56
} from '@tanstack/router-core'
6-
import { invariant } from '@tanstack/router-core'
77
import {
88
TSS_FORMDATA_CONTEXT,
99
X_TSS_RAW_RESPONSE,

0 commit comments

Comments
 (0)