Skip to content

Incompatibility with history.listen with history@5 #589

@adekbadek

Description

@adekbadek

The handleLocationChange function is called as the listener to history.listen. In version 5 of history, it has the signature of (location, action, isFirstRendering), while a history's listener function has a signature of ({action, location}).

This results in a state of shape {location:{location}} (nested) after the @@router/LOCATION_CHANGE action is called.

Fix is to use version 4 of the history package.

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