Skip to content

Commit 582900c

Browse files
RodrigoHamuyclaude
andcommitted
chore: update changeset — clearPath is new, not a fix
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 901895e commit 582900c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.changeset/clear-path-on-unmount.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"leva": minor
33
---
44

5-
Add `clearOnUnmount` option to remove inputs from the store when their component unmounts.
5+
Add `clearOnUnmount` option and `store.clearPath` to remove inputs from the store when their component unmounts.
66

7+
- `store.clearPath(path)` — new method to imperatively remove a single input from the store.
78
- `InputOptions.clearOnUnmount` — per-input flag; when `true` the input is removed from the store on unmount.
89
- `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)