-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use getServerSideProps instead of getInitialProps #155
Comments
Addition of |
It won't be deleted. |
@dvakatsiienko Where are you getting this information? I doubt this because it still has its advantages over getServerSideProps in some/many cases. The reason getInitialProps is discouraged (but still fully supported) is because it's easy to mess up if you're not careful about what you're doing (vercel/next.js#13864). So if you're careful you can make some optimizations using getInitialProps. |
I have a conflict with https://github.com/isaachinman/next-i18next because it uses |
Getting same conflict 😢 |
Same conflict one more time |
Same conflict 🥲 |
According to the official doc of next.js it's recommended to use
getStaticProps
orgetServerSideProp
instead ofgetInitialProps
. Can it be added to this lib? Does that make sense? Thanks!The text was updated successfully, but these errors were encountered: