We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent effdca1 commit 8f1e1c2Copy full SHA for 8f1e1c2
src/Next/Router.js
@@ -20,3 +20,5 @@ export function _off(event) {
20
export const query = (router) => router.query
21
22
export const push = (router) => (route) => () => router.push(route)
23
+
24
+export const route = (router) => router.route
src/Next/Router.purs
@@ -18,6 +18,8 @@ foreign import query :: forall q. Router -> q
18
19
foreign import push :: Router -> String -> Effect Unit
+foreign import route :: Router -> String
foreign import _on :: forall a. String -> a -> Effect Unit
25
foreign import _off :: forall a. String -> a -> Effect Unit
0 commit comments