← All examplesFlows

Cancel and back navigation

Keep navigation callbacks explicit and avoid accidental form submission.

Cancel and back controls

Back is disabled during work. Cancel requests abort while busy and calls its callback while idle.

No navigation requested.

CodeFocused snippet
<CancelButton onCancel={returnToList}>Cancel</CancelButton>
<BackButton onBack={() => router.back()}>Back</BackButton>

Read the related guide →

This demo uses a local, temporary action. It does not send data or write to a service.