X 归档 2021-05-12
Doing streaming SSR with granular hydration - using ONLY web-components (@buildWithLit) as the primitive on both client+server is so cool. Imagine SSR'ing the bulk of an E-commerce store, but then only hydrating interactive elements... https://lit-ssr-bug-hjw76.ondigitalocean.app/
做流式 SSR 加细粒度 hydration——客户端和服务端都只用 web-components(@buildWithLit)作为基本单元,太酷了。想象一下:对电商站点的大部分内容做 SSR,然后只对交互元素进行 hydration……


