·
41 commits
to master
since this release
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-So, #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>. [@Casheeew, #4020]- Added a
scheduler::flushfunction to reliably finish rendering. Useful in testing as a replacement for timeouts. [@Madoshakalaka, #4044]
🛠 Fixes
- No more broken child re-renders while setting parents' states. [@Madoshakalaka, #4060]
- Ergonomics: Bare
Nones are now allowed forOption<T>props in thehtml!macro. [@Madoshakalaka, #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. [@Madoshakalaka, #4033]