10.23.0
Features
- Support ref cleanup functions (#4436, thanks @marvinhagemeister)
This adds support for returning a function in functional refs, example
<input
ref={(ref) => {
// Assign ref, do something with it
return () => {
// ref cleanup, when the element unmounts
// we run the cleanup
};
}}
/>
Fixes
- Child-diffing should shift keyed fragmented lists (#4448, thanks @JoviDeCroock)
- Invalid DOM check not firing when p/a/button have a parent (#4449, thanks @JoviDeCroock)
- Support comments for streaming renders (#4446, thanks @JoviDeCroock)
- Import renderToPipeableStream in server.mjs for re-exporting (#4440, thanks @3846masa)
Types
- Add missing types ElementType and ComponentPropsWithoutRef (#4433, thanks @hamza0867)
- Add html attributes types #4099 (#4100, thanks @samsam-ahmadi)
Maintenance
- Dependency maintenance (#4431, thanks @JoviDeCroock)
- Fix coveralls reporting on PRs (#4430, thanks @JoviDeCroock)