Skip to content

Commit 29b0897

Browse files
committed
exposes the getPath function of use-router
1 parent 44c65a5 commit 29b0897

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@atomico/kit",
33
"description": "Series of utilities in hooks format to extend the operation of Atomico",
4-
"version": "2.4.0",
4+
"version": "2.5.0",
55
"type": "module",
66
"exports": {
77
"./use-child-nodes": "./src/use-child-nodes/use-child-nodes.js",

src/use-router/use-router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect } from "atomico";
22
import { getPath, listener } from "./src/history.js";
33
import { matches } from "./src/matches.js";
4-
export { redirect } from "./src/history.js";
4+
export { redirect, getPath } from "./src/history.js";
55

66
/**@type {InternalState} */
77
const DefaultState = {};

use-router.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
export { redirect, useRouter, useRoute } from "./src/use-router/use-router.js";
1+
export {
2+
getPath,
3+
redirect,
4+
useRoute,
5+
useRouter,
6+
} from "./src/use-router/use-router.js";

0 commit comments

Comments
 (0)