mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
8272ee7890
commit
004572cab6
1 changed files with 4 additions and 3 deletions
|
@ -10,11 +10,12 @@ import { Match, routeChange } from '../actions';
|
|||
|
||||
interface Props extends RouteProps {
|
||||
routeChange: (match: Match) => void;
|
||||
computedMatch?: any;
|
||||
}
|
||||
class CSRoute extends ReactRoute<Props> {
|
||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
||||
public UNSAFE_componentWillMount() {
|
||||
this.props.routeChange({ ...this.state.match, location: this.props.location });
|
||||
constructor(props: Props, context: any) {
|
||||
super(props, context);
|
||||
props.routeChange({ ...props.computedMatch, location: props.location });
|
||||
}
|
||||
|
||||
public componentDidUpdate() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue