Skip to content

Commit

Permalink
Reorder things after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Dec 27, 2023
1 parent 230d10b commit 569f8ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/router/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export * from './route-announcement'
export { default as RouteFocus } from './route-focus'
export * from './route-focus'
export * from './useRouteName'

export * from './useRoutePaths'

export { parseSearch, getRouteRegexAndParams, matchPath } from './util'
Expand Down
4 changes: 2 additions & 2 deletions packages/router/src/router-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ type UseAuth = () => AuthContextInterface<

export interface RouterState {
paramTypes?: Record<string, ParamType>
activeRouteName?: string | undefined | null
useAuth: UseAuth
routes: ReturnType<typeof analyzeRoutes>
activeRouteName?: string | undefined | null
}

const RouterStateContext = createContext<RouterState | undefined>(undefined)
Expand Down Expand Up @@ -63,9 +63,9 @@ export const RouterContextProvider: React.FC<RouterContextProviderProps> = ({
}) => {
const [state, setState] = useReducer(stateReducer, {
useAuth: useAuth || useNoAuth,
activeRouteName,
paramTypes,
routes,
activeRouteName,
})

return (
Expand Down

0 comments on commit 569f8ff

Please sign in to comment.