Skip to content

Route onEnter not called when only changing query params #2122

@torarnek

Description

@torarnek
const history = useQueries(createHistory)();

history.pushState(null, sameUrl, newQuery);

Does not trigger onEnter for route sameUrl.

However, when listening on history, state changes are triggered:

history.listen(function (location) {
  console.log(location.query);
})

I think onEnter should be called when changing query params. ?

Using 1.0-rc1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions