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

matchContext.tsx

10 lines370 Bytes

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