mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
chore(react): fixing issue with new history types (#22109)
This commit is contained in:
@ -2,14 +2,14 @@ import { Action as HistoryAction, Location as HistoryLocation, MemoryHistory } f
|
||||
import React from 'react';
|
||||
import { MemoryRouterProps, Router } from 'react-router';
|
||||
|
||||
import { IonRouter, LocationState } from './IonRouter';
|
||||
import { IonRouter } from './IonRouter';
|
||||
|
||||
interface IonReactMemoryRouterProps extends MemoryRouterProps {
|
||||
history: MemoryHistory<LocationState>;
|
||||
history: MemoryHistory;
|
||||
}
|
||||
|
||||
export class IonReactMemoryRouter extends React.Component<IonReactMemoryRouterProps> {
|
||||
history: MemoryHistory<LocationState>;
|
||||
history: MemoryHistory;
|
||||
historyListenHandler?: ((location: HistoryLocation, action: HistoryAction) => void);
|
||||
|
||||
constructor(props: IonReactMemoryRouterProps) {
|
||||
|
Reference in New Issue
Block a user