wraper.getInitialAppProps doesn't exist
See original GitHub issueDescribe the bug
As the title, I want dispatch actions from the pages/_app
following readme but this property doens’t exists on wrapper
, only have getServerSideProps
, getStaticProps
, withRedux
properties
To Reproduce
https://codesandbox.io/s/dreamy-ritchie-7qq5d?file=/pages/_app.tsx
Scroll Down to:
const errorHere = wrapper.getInitialAppProps;
Screenshots
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Property 'getInitialProps' does not exist on type 'FC<ItemProps ...
My code is as follows: import React, {FC} from "react"; import SingleItem from '../components/SingleItem'; import { useRouter } from ...
Read more >Next.Js Redux Wrapper w/ Typescript - Implementation error ...
I am unsure as to what the issue is. I am not able to access any type/interface to allow store to be a...
Read more >getInitialProps - Data Fetching - Next.js
Data returned from getInitialProps is serialized when server rendering, similar to what JSON.stringify does. Make sure the returned object from getInitialProps ...
Read more >How to access redux wrapper inside getInitialProps? : r/nextjs
I've implemented redux with SSR recently and we used a package called next redux wrapper. Within that wrapper you can use it's own ......
Read more >Client-Side and Server-Side Redirects in Next.js
This guide was written back when only getInitialProps existed and only applies to that method. This does not apply to getServerSideProps ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m also having exactly the same issue with
next-redux-wrapper@7.0.0-rc.2
.No way. https://unpkg.com/next-redux-wrapper@7.0.0/lib/index.js — the function is exported. Make sure you install proper version and follow the updated API.