UNPKG

@tanstack/solid-router

Version:

Modern and scalable routing for Solid applications

1 lines 832 B
{"version":3,"file":"matchContext.cjs","names":["Solid","AnyRouteMatch","NearestMatchContextValue","routeId","Accessor","match","defaultNearestMatchContext","undefined","nearestMatchContext","createContext"],"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,IAAaQ,sBACXR,SAAMS,cAAwCH,OALxCC,KAAAA,SACAA,KAAAA,CAIwCD,CAA0B"}