Keep Compose UI state and side effects in sync.
Recent revisions are kept. Restoring one creates a new revision.