Server: Phase 2 (REVIEW not respected yet)
This commit is contained in:
1 parent
5d16ded553
commit
142b47674d
4271 files changed
+1203269
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
import { useMatch } from "./useMatch.js";
|
||||
//#region src/useRouteContext.ts
|
||||
function useRouteContext(opts) {
|
||||
return useMatch({
|
||||
...opts,
|
||||
select: (match) => opts.select ? opts.select(match.context) : match.context
|
||||
});
|
||||
}
|
||||
//#endregion
|
||||
export { useRouteContext };
|
||||
|
||||
//# sourceMappingURL=useRouteContext.js.map
|
||||
Reference in new issue
Block a user