'How to pass datas that I get through getServerSideProps to all pages
I want to use color that I get through getServerSideProps(different colors/each customers) in all pages.
So what I was going to do were: (1)useState: Is there any ways to get datas through getServerSideProps and set the data as useState? (2)_app.js: getServerSideProps doesn't work on _app.js.
I'm using Next.js. Thank you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
