Skip to content

Preventing history push when setQuery didn't actually result in any url changes #234

@PEsteves8

Description

@PEsteves8

Hi,

The library works great, but I'm using a custom adapter to compare the state of the URL before actually allowing a navigate call.

The thing is that it's sometimes easier to just call setQuery in certain circumstances without worrying about whether or not anything changed. The issue is that this creates history entries that don't do anything. So sometimes after rendering a screen, to go back, you'd have to hit back a few times before actually reaching the real previous url state.

My current solution works well, but I'm wondering if this feature is available and I haven't found it, or if it's deliberately been left out for some technical reason. Or maybe I'm just not designing my features ideally and this isn't really a need if one designs things properly.

Thanks for your work,
Paulo

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