feat($state): expose previous state/params via $state