v0.7.3
leptos-rs/leptosv0.7.3Jan 4, 2025by gbj
AI Summary
A small patch release adding prop destructuring syntax and fixing island hydration and context issues.
Key Highlights
- Added `#[prop(name = ...)]` syntax to destructure props
- Fixed island hydration when nested in a closure
- Added `Default` to stores
- Added `Dispose` for `Store`
New Features
- Prop destructuring syntax `#[prop(name = ...)]`
- `Store` `Default` implementation
- `Store` `Dispose` implementation
Full Release Notes
**If you're migrating from 0.6 to 0.7, please see the 0.7.0 release notes [here](https://github.com/leptos-rs/leptos/releases/tag/v0.7.0).**
This is a small patch release including a couple of bugfixes, as well as the ability to destructure prop value in components with a new `#[prop(name = ...)]` syntax (see #3382)
```rust
#[prop(name = "data")] UserInfo { email, user_id }: UserInfo,
```
## What's Changed
* Enable `console` feature of `web-sys` for `reactive_graph` by @alexisfontaine in https://github.com/leptos-rs/leptos/pull/3406
* fix: correctly track updates to keyed fields in keyed iterator (closes #3401) by @gbj in https://github.com/leptos-rs/leptos/pull/3403
* fix: `getrandom` needs `js` feature (used when `nonce` feature is active) (closes #3409) by @gbj in https://github.com/leptos-rs/leptos/pull/3410
* Provide custom state in `file_and_error_handler` by @spencewenski in https://github.com/leptos-rs/leptos/pull/3408
* feat: allow to destructure props by @geovie in https://github.com/leptos-rs/leptos/pull/3382
* Add missing `#[track_caller]`s by @mscofield0 in https://github.com/leptos-rs/leptos/pull/3422
* Fix issues with island hydration when nested in a closure, and with context (closes #3419) by @gbj in https://github.com/leptos-rs/leptos/pull/3424
* docs: remove `islands` mention from `leptos_axum` by @chrisp60 in https://github.com/leptos-rs/leptos/pull/3423
* fix: correct ownership in redirect route hook (closes #3425) by @gbj in https://github.com/leptos-rs/leptos/pull/3428
* fix failure on try_new() methods which should not fail by @kstep in https://github.com/leptos-rs/leptos/pull/3436
* Add `Default` to stores by @mscofield0 in https://github.com/leptos-rs/leptos/pull/3432
* add `Dispose` for `Store` by @mscofield0 in https://github.com/leptos-rs/leptos/pull/3429
* Tachy class: impl IntoClass for Cow<'_, str> by @sgued in https://github.com/leptos-rs/leptos/pull/3420
* fix: `erase_components` with AttributeInterceptor by @gbj in https://github.com/leptos-rs/leptos/pull/3435
## New Contributors
* @kstep made their first contribution in https://github.com/leptos-rs/leptos/pull/3436
* @sgued made their first contribution in https://github.com/leptos-rs/leptos/pull/3420
**Full Changelog**: https://github.com/leptos-rs/leptos/compare/v0.7.2...v0.7.3