Skip to content

MemoryLocation does not support Search #544

@bensaufley

Description

@bensaufley

Simple reproduction here:

Neither useSearch nor useSearchParams respect initial, or subsequent, search state when using memoryLocation. Link, navigate, and setSearch (from useSearchParams) do not update the search value of useSearch or useSearchParams (which consumes useSearch); but also, useLocation's location does not include the search either.

I should note that this is important because memoryLocation is a good utility for writing tests if nothing else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions