Today we are announcing a new hook useId, this hook is meant to create stable unique identifiers that are consistent on both server-side render and client-side hydration. This feature can to enable a11y features for reusable components, ...
To enable the isomorphic unique identifiers you will need Preact-render-to-string 5.2.4 on the server.
(#3583, thanks @JoviDeCroock)
- Cleanup _parent, _dom and __hooks after unmount (#3709, thanks @JoviDeCroock)
- Microbundle output formats after #3697 (#3702, thanks @rschristian)
- fix case where we would omit the ref from reused vnodes (#3696, thanks @JoviDeCroock)
- Pass
errorInfo
touseErrorBoundary
callback (#3689, thanks @marvinhagemeister) - fix typescript definition for class | className (#3711, thanks @PodaruDragos)
- Fix the mac arm build (#3697, thanks @gengjiawen)
- add todo benchmark and add a proxy package that uses preact/hooks (#3708, thanks @JoviDeCroock)
- chore: Add deprecation JSDoc for render()'s
replaceNode
(#3700, thanks @rschristian) - improve types for bare createElement and h calls (#3690, thanks @JoviDeCroock)
- add test for useId (#3716, thanks @JoviDeCroock)