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
&strandStringcan now be used for props of typeOption<Html>. [@Cashew, #4020]- Added a
scheduler::flushfunction 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 forOption<T>props in thehtml!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]