Make browser Back button work as expected in the context of url queries syncing
Replace rather than push browser history when syncing url queries.pull/3556/head
parent
4526655b9b
commit
f2dbf20715
|
@ -1,5 +1,5 @@
|
||||||
import {bindActionCreators} from 'redux'
|
import {bindActionCreators} from 'redux'
|
||||||
import {push} from 'react-router-redux'
|
import {replace} from 'react-router-redux'
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import queryString from 'query-string'
|
import queryString from 'query-string'
|
||||||
|
|
||||||
|
@ -427,7 +427,7 @@ export const syncURLQueryFromQueriesObject = (
|
||||||
...updatedSearch,
|
...updatedSearch,
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch(push(updatedLocation))
|
dispatch(replace(updatedLocation))
|
||||||
}
|
}
|
||||||
|
|
||||||
export const syncURLQueryFromTempVars = (
|
export const syncURLQueryFromTempVars = (
|
||||||
|
|
Loading…
Reference in New Issue