欢迎光临散文网 会员登陆 & 注册

前端winter、杨村长、然叔前端工程化 - 原理篇

2023-03-22 20:22 作者:紫寰殿  | 我要投稿
  • 要么服务端渲染,下拉更新(2)

  • 但这次的服务端渲染不能用 getStaticProps

  • 因为 getStaticProps 是在 build 时执行的

  • 所以要用 getServerSideProps

运行时机

  • 无论是开发环境还是生产环境

  • 都是在请求到来之后运行 getServerSideProps

  • 与 getStaticProps 区别,build 时运行一次

参数


前端winter、杨村长、然叔前端工程化 - 原理篇的评论 (共 条)

分享到微博请遵守国家法律