mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
8 lines
277 B
TypeScript
8 lines
277 B
TypeScript
import { useContext } from "react";
|
|
import { __RouterContext } from "react-router";
|
|
// used to transform routerContext into a hook
|
|
// TODO : find alternate solution as this uses an internal variable
|
|
export default function useRouter() {
|
|
return useContext(__RouterContext);
|
|
}
|