Files
windmill/frontend/src/lib
Diego Imbert 118b0c4e90 fix(frontend): add UserDraft.discard so "Reset to deployed" doesn't re-persist
The "Reset to deployed" toast action in resource/variable editors
called UserDraft.save with the backend value to repaint the form. That
left a duplicate-of-backend autosave in localStorage which would
silently restore on every subsequent reload, defeating the reset.

New UserDraft.discard(itemKind, path, fallback) clears LS AND resets
any live handle's in-memory state to the fallback, skipping the next
persist so the fallback doesn't round-trip back into storage. Backed
by a new `skipNextWriteOnce()` method on useLocalStorageValue's return.
2026-05-15 18:13:01 +02:00
..
2026-03-26 18:52:15 +00:00
2026-05-11 12:26:21 +02:00
2026-03-27 19:39:55 +00:00