question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wraper.getInitialAppProps doesn't exist

See original GitHub issue

Describe 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

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ruuticommented, May 31, 2021

I’m also having exactly the same issue with next-redux-wrapper@7.0.0-rc.2.

0reactions
kirill-konshincommented, Jun 3, 2021

I have the same problem with 7.0.0

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found