Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

matchContext.tsx

8 lines320 Bytes

1import * as React from 'react'
2​
3export const matchContext = React.createContext<string | undefined>(undefined)
4​
5// N.B. this only exists so we can conditionally call useContext on it when we are not interested in the nearest match
6export const dummyMatchContext = React.createContext<string | undefined>(
7 undefined,
8)