@homecode/ui 4.18.45 → 4.18.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,7 +15,7 @@ const Router = (props) => {
|
|
|
15
15
|
const fullPath = ctx.basePath + basePath;
|
|
16
16
|
useEffect(() => {
|
|
17
17
|
const onPopState = () => {
|
|
18
|
-
STORE.go(window.location.pathname,
|
|
18
|
+
STORE.go(window.location.pathname, STORE.query, { replace: true });
|
|
19
19
|
};
|
|
20
20
|
window.addEventListener('popstate', onPopState);
|
|
21
21
|
return () => window.removeEventListener('popstate', onPopState);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
2
|
+
import type { RouterStore as RouterStoreType } from './store';
|
|
3
3
|
import * as T from './Router.types';
|
|
4
4
|
export declare const Router: {
|
|
5
5
|
(props: T.Props): JSX.Element;
|
|
@@ -10,4 +10,4 @@ export * from './Redirect';
|
|
|
10
10
|
export * from './Link/Link';
|
|
11
11
|
export declare const RouterStore: any;
|
|
12
12
|
export declare const RouterContext: import("react").Context<import("./context").ContextType>;
|
|
13
|
-
export type RouterStore =
|
|
13
|
+
export type RouterStore = RouterStoreType;
|