@tanstack/solid-router
Version:
Modern and scalable routing for Solid applications
1 lines • 665 B
Source Map (JSON)
{"version":3,"file":"matchContext.cjs","names":[],"sources":["../../src/matchContext.tsx"],"sourcesContent":["import * as Solid from 'solid-js'\nimport type { AnyRouteMatch } from '@tanstack/router-core'\n\nexport type NearestMatchContextValue = readonly [\n routeId: Solid.Accessor<string | undefined>,\n match: Solid.Accessor<AnyRouteMatch | undefined>,\n]\n\nconst defaultNearestMatchContext: NearestMatchContextValue = [\n () => undefined,\n () => undefined,\n]\n\nexport const nearestMatchContext =\n Solid.createContext<NearestMatchContextValue>(defaultNearestMatchContext)\n"],"mappings":";;;AAaA,IAAa,sBACX,SAAM,cAAwC,OALxC,KAAA,SACA,KAAA,CAIwC,CAA0B"}