Skip to content

Commit 2567de7

Browse files
committed
add native event props to Memory Router
1 parent 10b094d commit 2567de7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/routers/MemoryRouter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function createMemoryHistory() {
5454
};
5555
}
5656

57-
export type MemoryRouterProps = BaseRouterProps & { history?: MemoryHistory };
57+
export type MemoryRouterProps = BaseRouterProps & { history?: MemoryHistory, actionBase?: string, explicitLinks?: boolean, preload?: boolean };
5858

5959
export function MemoryRouter(props: MemoryRouterProps): JSX.Element {
6060
const memoryHistory = props.history || createMemoryHistory();
@@ -63,7 +63,7 @@ export function MemoryRouter(props: MemoryRouterProps): JSX.Element {
6363
get: memoryHistory.get,
6464
set: memoryHistory.set,
6565
init: memoryHistory.listen,
66-
create: setupNativeEvents(),
66+
create: setupNativeEvents(props.preload, props.explicitLinks, props.actionBase),
6767
utils: {
6868
go: memoryHistory.go
6969
}

0 commit comments

Comments
 (0)