this repo has no description
1let currentPath = $state(window.location.hash.slice(1) || '/') 2window.addEventListener('hashchange', () => { 3 currentPath = window.location.hash.slice(1) || '/' 4}) 5export function navigate(path: string) { 6 window.location.hash = path 7} 8export function getCurrentPath() { 9 return currentPath 10}