Support for `getServerSideProps`
See original GitHub issueIs your feature request related to a problem? Please describe.
When using getServerSideProps
as opposed to getInitialProps
results in a namespacesRequired
warning, despite the fact that I am returning namespacesRequired
inside the required props
key
I don’t know if this is factual or not, or if the warning is a red herring
Describe the solution you’d like
Ideally I’d like getServerSideProps
to be supported.
Apologies if this is vague or unclear, or a completely unreasonable request.
Thanks in advance
Issue Analytics
- State:
- Created 4 years ago
- Reactions:95
- Comments:43 (18 by maintainers)
Top Results From Across the Web
Data Fetching: getServerSideProps - Next.js
This new directory has support for colocated data fetching at the component level, using the new React use hook and an extended fetch...
Read more >Support for `getServerSideProps` · Issue #652 · i18next ...
Ideally I'd like getServerSideProps to be supported. Apologies if this is vague or unclear, or a completely unreasonable request.
Read more >What is Next.js getInitialProps and getServerSideProps? | refine
js provides getServerSideProps (server-side Rendering) with caching capabilities that help improve server response times and reduces the number ...
Read more >Next.js Tutorial - 34 - getServerSideProps context - YouTube
Courses - https://learn.codevolution.dev/⚡️ Checkout Taskade! https://www.taskade.com/ Support UPI - https:// support.codevolution.dev/ ...
Read more >NEXTJS: getServerSideProps not working into components
You cannot use getServerSideProps in non-page components. You can either pass the prop from Home to HomeSection or create a context so the ......
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 Free
Top 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
since we cant use serverSideProps together with initialProps. we can make use of React FunctionComponent.defaultProps here is the workaround that works for me, and it still works with initialProps (https://github.com/isaachinman/next-i18next/issues/615#issuecomment-575578375)
I do not currently have much time for development on this project due to other factors in life. I don’t see this changing for the next few weeks, at least.
As I’ve stated,
next-i18next
will be rewritten once plugin support (finally) lands. If you’d like to see this (and many other features) supported, please let the NextJs team know that you are waiting for plugin support!