You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if Yew had something like Next.js's hybrid approach.
They use automatic static optimization. If a page has no blocking data, it's static-generated*. A page can also use SSR or client-side like regular React.
Advantages of hybrid approach:
performant
great SEO
flexible (SSG, SSR, or client-side)
Use cases this would benefit:
someone who just wants to make a blog using Rust -> full SSG
someone who wants a blog but also wants to use some external fetched data on particular pages -> mostly SSG, some SSR
someone who wants a website with landing page. but also an SPA after authentication. -> SSG for the public site, CSR for the authenticated part (although SSR could still be useful here)
I'm not saying we copy everything from them. For example, the filesystem-based router can be omitted.
I do think that the hybrid approach would really open doors for the ways that Yew can be used.
Thoughts?
* #1379 touched on SSG but I opened another issue because this discussion is broader.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It would be great if Yew had something like Next.js's hybrid approach.
They use automatic static optimization. If a page has no blocking data, it's static-generated*. A page can also use SSR or client-side like regular React.
Advantages of hybrid approach:
Use cases this would benefit:
I'm not saying we copy everything from them. For example, the filesystem-based router can be omitted.
I do think that the hybrid approach would really open doors for the ways that Yew can be used.
Thoughts?
* #1379 touched on SSG but I opened another issue because this discussion is broader.
Beta Was this translation helpful? Give feedback.
All reactions