Open seonghyeonkimm opened 2 years ago
[streaming ssr keynote video] https://ko.reactjs.org/blog/2021/12/17/react-conf-2021-recap.html#streaming-server-rendering-with-suspense
[how to understand html streaming] https://www.patterns.dev/posts/ssr/ https://github.com/GoogleChromeLabs/progressive-rendering-frameworks-samples
[react-query suspense for data fetching with html streaming] https://github.com/tannerlinsley/react-query/discussions/3173 https://github.com/tannerlinsley/react-query/discussions/2942 https://github.com/reactwg/react-18/discussions/121#discussioncomment-2207678
ssr suspense는 공식적으로는 아직 React.lazy(nextjs dynamic), react server component에서만 작동한다. nextjs에서 runtime 옵션을 추가했는데, nodejs, edge runtime이 있다. 이 두개의 동작 차이가 있다. https://github.com/vercel/next.js/discussions/34179 nodejs runtime은 streaming + selective hydration이 잘 작동 안하는 느낌이고, edge runtime은 잘 작동하는 느낌..?