Open adekbadek opened 1 year ago
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}).
handleLocationChange
history.listen
history
(location, action, isFirstRendering)
({action, location})
This results in a state of shape {location:{location}} (nested) after the @@router/LOCATION_CHANGE action is called.
{location:{location}}
@@router/LOCATION_CHANGE
Fix is to use version 4 of the history package.
The
handleLocationChange
function is called as the listener tohistory.listen
. In version 5 ofhistory
, it has the signature of(location, action, isFirstRendering)
, while ahistory
'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.