UNPKG

@vaadin/hilla-file-router

Version:

Hilla file-based router

9 lines 268 B
import { useMatches } from "react-router"; /** * Hook to return the {@link ViewConfig} for the current route. */ export function useViewConfig() { const matches = useMatches(); return matches[matches.length - 1]?.handle; } //# sourceMappingURL=./useViewConfig.js.map