View lifetime differs from task lifetime
A person may navigate away because the job is slow, not because the asset is unwanted. Another may abandon the draft entirely. Your app should preserve paid work without reopening dismissed screens, changing the current project selection or treating navigation as a cancellation request.
What to do next
- 01
Record a destination before dispatch
Associate the approved action with a durable project or inbox destination that survives closing the editor. Do not rely on the component's in-memory callback to decide where a completed result belongs.
- 02
Detach view callbacks safely
When the editor closes, remove subscriptions and preview resources while leaving backend task tracking intact. Mark whether the user wants completion notices through your application's preferences, independently of the generation's remote state.
- 03
Make late results discoverable
Add completed work to project history or an inbox with its submitted prompt revision and creation time. Let users open or dismiss that entry deliberately rather than navigating them away from their current work.
A concrete example
Illustrative example: a user closes a poster draft and opens a video project. The poster result later appears in the poster project's history. The current video editor remains unchanged, and the poster is still available for review.
Before you call it ready
- Closing the editor keeps the durable task.
- Late completion never changes the current project.
- History identifies the submitted draft version.
When to stop or choose another method
Stop using component cleanup as evidence that generation was cancelled or that a result can be discarded without a product policy.
