Skip to content

useLocationHash #427

Open
Open
@jer3m01

Description

@jer3m01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRs welcomeAn issue which might not be prioritised right away but would be open to community contributionenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions