Skip to content

Commit

Permalink
fix: devtools router props
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Feb 7, 2023
1 parent 9adb041 commit fc82435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-router-devtools/src/devtools.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react'
import {
Router,
last,
routerContext,
invariant,
useRouter,
AnyRouter,
useStore,
} from '@tanstack/react-router'

import useLocalStorage from './useLocalStorage'
Expand Down Expand Up @@ -424,7 +424,7 @@ export const TanStackRouterDevtoolsPanel = React.forwardRef<
'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.',
)

useRouter()
useStore(router.__store)

const [activeRouteId, setActiveRouteId] = useLocalStorage(
'tanstackRouterDevtoolsActiveRouteId',
Expand Down

0 comments on commit fc82435

Please sign in to comment.