Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.51 KB

2022-11-24-release-0-20.md

File metadata and controls

33 lines (19 loc) · 1.51 KB
Error in user YAML: (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1
---
title: Releasing Yew 0.20
authors: [hamza] tags: [release]
---

The Yew team is happy to announce a new, long overdue, version of Yew: v0.20. Yew is a framework for creating reliable and efficient web applications.

What's new

This release comes with new features aimed at improving the user experience, such as server-rendering and render-as-you-fetch approach for data-fetching.

SSR

Yew now fully supports rendering on the server. Rendering on the server means users will get a rendered HTML and will not have to wait to be able to see anything until the entire WebAssembly bundle is downloaded and initial render has completed. With SSR, the page will be visible instantly, and interactable as soon as hydration finishes.

Learn more at Server-side rendering

Data fetching

With SSR comes new ways of data-fetching. The newly added use_prepared_state! hook can be used to fetch data while rendering on the and seemlessly use it in the component.

For client-side fetching, Yew now supports render-as-you-fetch approach with Suspense.

How to upgrade

There have been breaking changes in this release. Our migration guides go over how to upgrade each over of the new crates.

Thanks!

Many people came together to help make this release happen. We couldn't have done it without all of you. Thanks!