Skip to content

Commit

Permalink
Remove location prop from Switch (#93)
Browse files Browse the repository at this point in the history
Gets back behaviour from pre-Razzle version.
  • Loading branch information
fredrik-sogaard authored and jaredpalmer committed Feb 11, 2018
1 parent 67e7ce0 commit 2302b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/After.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Afterparty extends React.Component<any, any> {
const initialData = this.prefetcherCache[location.pathname] || data;
console.log(initialData);
return (
<Switch location={previousLocation || location}>
<Switch>
{this.props.routes.map((r: any, i: number) => (
<Route
key={`route--${i}`}
Expand Down

0 comments on commit 2302b8c

Please sign in to comment.