Replies: 3 comments
-
出错,然后自动降级为客户端渲染了? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@tuyeye 朋友你有没有遇到过我这些问题,discussions/6633,第一次弄ssr不太会。。。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
因为 getInitialProps 方法 会在客户端和服务端都会被触发,如果不想再客户端请求接口,可以
可以来 segmentfault 关注我 ,有问题随时问我 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
umi 项目,开启ssr,在getInitialProps中请求数据,网页源代码确实是服务端渲染后的,但是为什么在network中可以查看到请求接口,我曾经在nextJs中尝试ssr,在network中是看不见请求接口的。
代码片段:
浏览器network:
不知道是我配置问题还是什么,求解答
Beta Was this translation helpful? Give feedback.
All reactions