|
|
@ -3,6 +3,7 @@ import store from "../store";
|
|
|
|
import { setQuery, setPathname, Query, updateStateWithLocation } from "../store/modules/location";
|
|
|
|
import { setQuery, setPathname, Query, updateStateWithLocation } from "../store/modules/location";
|
|
|
|
|
|
|
|
|
|
|
|
const updateLocationUrl = (method: "replace" | "push" = "replace") => {
|
|
|
|
const updateLocationUrl = (method: "replace" | "push" = "replace") => {
|
|
|
|
|
|
|
|
store.dispatch(updateStateWithLocation());
|
|
|
|
const { query, pathname, hash } = store.getState().location;
|
|
|
|
const { query, pathname, hash } = store.getState().location;
|
|
|
|
let queryString = stringify(query);
|
|
|
|
let queryString = stringify(query);
|
|
|
|
if (queryString) {
|
|
|
|
if (queryString) {
|
|
|
|