Skip to content

Commit 671d9c5

Browse files
authored
Merge pull request #413 from iamcsharper/feature-export-context
Re-Export RouterContext for more control
2 parents be0ba57 + 8f0a8c3 commit 671d9c5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/angry-mugs-brush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/router": minor
3+
---
4+
5+
Re-export context

src/components.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import type { JSX } from "solid-js";
33
import { createMemo, mergeProps, splitProps } from "solid-js";
44
import {
5+
RouterContextObj,
56
useHref,
67
useLocation,
78
useNavigate,
@@ -13,6 +14,8 @@ import type {
1314
} from "./types.js";
1415
import { normalizePath } from "./utils.js";
1516

17+
export { RouterContextObj as RouterContext };
18+
1619
declare module "solid-js" {
1720
namespace JSX {
1821
interface AnchorHTMLAttributes<T> {

0 commit comments

Comments
 (0)