File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
examples/with-redux-wrapper Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 7
7
},
8
8
"dependencies" : {
9
9
"next" : " 9.4.1" ,
10
- "next-redux-wrapper" : " ^6 .0.1 " ,
10
+ "next-redux-wrapper" : " ^7 .0.2 " ,
11
11
"react" : " ^17.0.2" ,
12
12
"react-dom" : " ^17.0.2" ,
13
13
"react-redux" : " 7.1.3" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const Index = (props) => {
18
18
return < Page title = "Index Page" linkTo = "/other" />
19
19
}
20
20
21
- export const getStaticProps = wrapper . getStaticProps ( async ( { store } ) => {
21
+ export const getStaticProps = wrapper . getStaticProps ( ( store ) => ( ) => {
22
22
store . dispatch ( serverRenderClock ( true ) )
23
23
store . dispatch ( addCount ( ) )
24
24
} )
Original file line number Diff line number Diff line change @@ -18,12 +18,10 @@ const Other = (props) => {
18
18
return < Page title = "Other Page" linkTo = "/" />
19
19
}
20
20
21
- export const getServerSideProps = wrapper . getServerSideProps (
22
- async ( { store } ) => {
23
- store . dispatch ( serverRenderClock ( true ) )
24
- store . dispatch ( addCount ( ) )
25
- }
26
- )
21
+ export const getServerSideProps = wrapper . getServerSideProps ( ( store ) => ( ) => {
22
+ store . dispatch ( serverRenderClock ( true ) )
23
+ store . dispatch ( addCount ( ) )
24
+ } )
27
25
28
26
const mapDispatchToProps = ( dispatch ) => {
29
27
return {
You can’t perform that action at this time.
0 commit comments