Skip to content

Commit

Permalink
Fix #385 #384
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-konshin committed Jun 14, 2021
1 parent eac79cc commit 9b041f8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/wrapper/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,12 @@ export const createWrapper = <S extends Store>(makeStore: MakeStore<S>, config:
delete resultProps.pageProps.initialState;
}

console.log({initialProps, resultProps});

// unwrap getInitialPageProps
if (resultProps?.pageProps?.initialProps) {
resultProps.pageProps = {...resultProps.pageProps, ...resultProps.pageProps.initialProps};
delete resultProps.pageProps.initialProps;
}

console.log({initialProps, resultProps});

return (
<Provider store={this.store}>
<Component {...initialProps} {...resultProps} />
Expand Down

0 comments on commit 9b041f8

Please sign in to comment.