github yewstack/yew yew-v0.23.0
yew v0.23.0

8 hours ago

bumping from 0.22 should require no code changes for most users.

🚨 Breaking changes

  • Performance: use_reducer now skips re-rendering for the same Rc. [@Pascal Sommer, #3945]
    NOTE: Whether this is breaking is arguable. It merely breaks the promise that a dispatch will always cause a re-render. For code that wishes to force re-render, use_force_update helps. Please refer to the migration guide for details.

⚡️ Features

  • &str and String can now be used for props of type Option<Html>. [@Cashew, #4020]
  • Added a scheduler::flush function to reliably finish rendering. Useful in testing as a replacement for timeouts. [@Siyuan Yan, #4044]

🛠 Fixes

  • No more broken child re-renders while setting parents' states. [@Siyuan Yan, #4060]
  • Ergonomics: Bare Nones are now allowed for Option<T> props in the html! macro. [@Siyuan Yan, #4021]

⚙️ Improvements

  • Yew's scheduler now yields to the main thread from time to time. This fix will make the web page more responsive and reduce warnings about long tasks in the console. [@Siyuan Yan, #4033]

Don't miss a new yew release

NewReleases is sending notifications on new releases.