@tanstack/solid-router
Version:
Modern and scalable routing for Solid applications
1 lines • 678 B
Source Map (JSON)
{"version":3,"file":"matchContext.cjs","names":["Solid","matchContext","createContext","Accessor","undefined","dummyMatchContext"],"sources":["../../src/matchContext.tsx"],"sourcesContent":["import * as Solid from 'solid-js'\n\nexport const matchContext = Solid.createContext<\n Solid.Accessor<string | undefined>\n>(() => undefined)\n\n// N.B. this only exists so we can conditionally call useContext on it when we are not interested in the nearest match\nexport const dummyMatchContext = Solid.createContext<\n Solid.Accessor<string | undefined>\n>(() => undefined)\n"],"mappings":";;;;AAEA,IAAaC,eAAeD,SAAME,oBAE1BE,KAAAA,EAAU;AAGlB,IAAaC,oBAAoBL,SAAME,oBAE/BE,KAAAA,EAAU"}