【发布时间】:2021-07-04 19:32:08
【问题描述】:
我需要在 getServerSideProps 函数中获取一些从 NextJS 页面提交到另一个(服务器端渲染)页面的表单数据。基本上我需要在 getServerSideProps() 中调用的 api 需要传递这些数据。想过使用 localStorage/sessionStorage 在表单页面上存储数据并在函数中检索,但这在服务器上呈现时不起作用。有什么帮助吗?
【问题讨论】:
标签: next.js getserversideprops