Skip to content

Commit 6b30955

Browse files
RodrigoHamuyclaude
andcommitted
chore: clarify changeset — clears cached value, not the input itself
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 582900c commit 6b30955

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

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

5-
Add `clearOnUnmount` option and `store.clearPath` to remove inputs from the store when their component unmounts.
5+
Add `clearOnUnmount` option and `store.clearPath` to discard cached input values when they are no longer in use.
66

7-
- `store.clearPath(path)` — new method to imperatively remove a single input from the store.
8-
- `InputOptions.clearOnUnmount` — per-input flag; when `true` the input is removed from the store on unmount.
9-
- `LevaRootProps.clearOnUnmount` — panel-level flag; when `true` all inputs managed by that panel are cleared on unmount, overriding the per-input setting.
7+
- `store.clearPath(path)` — new method to imperatively discard the cached value of an input that is no longer mounted.
8+
- `InputOptions.clearOnUnmount` — per-input flag; when `true` the input's cached value is discarded from the store on unmount.
9+
- `LevaRootProps.clearOnUnmount` — panel-level flag; when `true` all inputs managed by that panel have their cached values discarded on unmount, overriding the per-input setting.

0 commit comments

Comments
 (0)