Skip to content

Add useHashParam hook #6

Open
Open
@ThaNarie

Description

@ThaNarie

Exists in the Muban Core Component Library.

Although that implementation works fine for a single hash param, working with multiple at the same time (i.e. updating two at once) will trigger two URL updates – meaning two history entries.

I wonder if we should extend this hook (or make another one) that supports multiple hash params as a reactive object, and clearly document when either one should be used?

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needednew-hookThe addition of a new hook

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions