File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ node_modules
5
5
esm
6
6
lib
7
7
umd
8
+ .idea
8
9
dist
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const createConnectedRouter = (structure) => {
38
38
} = history . location
39
39
40
40
// If we do time travelling, the location in store is changed but location in history is not changed
41
- if ( pathnameInHistory !== pathnameInStore || searchInHistory !== searchInStore || hashInHistory !== hashInStore ) {
41
+ if ( props . history . action === 'PUSH' && ( pathnameInHistory !== pathnameInStore || searchInHistory !== searchInStore || hashInHistory !== hashInStore ) ) {
42
42
this . inTimeTravelling = true
43
43
// Update history's location to match store's location
44
44
history . push ( {
@@ -92,6 +92,7 @@ const createConnectedRouter = (structure) => {
92
92
listen : PropTypes . func . isRequired ,
93
93
location : PropTypes . object . isRequired ,
94
94
push : PropTypes . func . isRequired ,
95
+ action : PropTypes . string . isRequired ,
95
96
} ) . isRequired ,
96
97
basename : PropTypes . string ,
97
98
children : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . node ] ) ,
You can’t perform that action at this time.
0 commit comments