solid-primitives
solid-primitives copied to clipboard
useLocationHash
Describe The Problem To Be Solved
reactively use location hash
Suggest A Solution
const locationHash = useLocationHash();
createEffect(() => {
console.log(locationHash()); // => '#' + string
});
https://developer.mozilla.org/en-US/docs/Web/API/Window/hashchange_event