ui/client/features/envelopes/hooks/useSave
Cockpit client (features), next. Source: ui/client/features/envelopes/hooks/useSave.ts.
Functions#
useSave()#
useSave(
steps,onSaved):SaveApi
Defined in: ui/client/features/envelopes/hooks/useSave.ts:11
"Save this flow": name the draft, preview it (validated but not written), then confirm to
commit through 's saveFlow -- the same preview/commit/Save/Cancel shape the Rules tab's writers use.
onSaved re-reads the saved-flows list so the new/updated flow shows up immediately.
Parameters#
steps
onSaved
() => void