feat: migrate to $app/state
#358
+13
−8
Merged
$app/state
#358