Skip to content

Commit 901895e

Browse files
RodrigoHamuyclaude
andcommitted
chore: add changeset for clearOnUnmount feature
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a1f6056 commit 901895e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"leva": minor
3+
---
4+
5+
Add `clearOnUnmount` option to remove inputs from the store when their component unmounts.
6+
7+
- `InputOptions.clearOnUnmount` — per-input flag; when `true` the input is removed from the store on unmount.
8+
- `LevaRootProps.clearOnUnmount` — panel-level flag; when `true` all inputs managed by that panel are cleared on unmount, overriding the per-input setting.

0 commit comments

Comments
 (0)