Skip to content

Commit

Permalink
fix: router is undefined in page props
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozone committed Mar 5, 2022
1 parent cb9e0fe commit 3986b3c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/withApollo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ export default function withApollo<TCache = any>(
const render = pageOptions.render || options.render;
const onError = pageOptions.onError || options.onError;

function WithApollo({
apollo,
apolloState,
router,
...props
}: ApolloProps) {
function WithApollo({ apollo, apolloState, ...props }: ApolloProps) {
const router = props.router;
const apolloClient =
apollo ||
initApollo<TCache>(client, {
Expand Down

0 comments on commit 3986b3c

Please sign in to comment.