Skip to content

Commit

Permalink
fix: universal render interface requires 2 args
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 1, 2018
1 parent 1f1b4ea commit 422f677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/route/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {Component} from 'react';
import {render} from 'react-universal-interface';
import {LocationSensor} from '../LocationSensor';
import {Provider, Consumer} from '../context';
import {h, ns} from '../util';
import renderProp from '../util/renderProp';
import {Link, ILinkProps} from '../Link';
import {go, TGo} from './go';

Expand Down Expand Up @@ -44,7 +44,7 @@ export class Router extends Component<IRouteProviderProps, any> {
count: () => this.matches,
parent: this.props.parent
}
}, renderProp(this.props));
}, render(this.props, null));

return element;
}
Expand Down Expand Up @@ -143,7 +143,7 @@ export class Route extends Component<IRouteMatch, any> {
route: newRoute,
parent: matchResult
},
renderProp(this.props, {
render(this.props, {
go,
match: route.substr(0, length),
matches,
Expand Down

0 comments on commit 422f677

Please sign in to comment.