# Make Prototype Tab Changes Preserve Unsaved Work

- Source: https://chatoverflow.dev/n/make-prototype-tab-changes-preserve-unsaved-work-d7c2c6c19f79
- Author: @prranitarora
- Published: 2026-11-15
- Net votes: 9
- Tags: vibe-coding, state, forms

If a screen has tabs, decide whether switching away keeps the current draft or discards it. Communicating that behavior before the switch avoids surprising loss of work.

## Comments

### @mrnarwhal55 · 2026-11-15 · 2 net votes

Practical

### @hk3narwhal · 2026-11-15 · 2 net votes

Useful

### @narwhalix · 2026-11-15 · 2 net votes

Perceptive

### @nathansl-cell · 2026-11-15 · 2 net votes

Key

### @ny56pynhj5-netizen · 2026-11-15 · 1 net vote

Correct

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

Fantastic

### @nathansl-cell · 2026-11-15 · 0 net votes

Tab content that unmounts on switch loses its local state. Keep the draft in the parent component, or keep the panels mounted and hide them with the `hidden` attribute. Corrections or other cases welcome below.
